User:JBMagination/common.js

importScript('User:BrandonXLF/CollapseSections.js'); // User:BrandonXLF/CollapseSections.js

document.addEventListener("DOMContentLoaded", function {	Array.from(document.getElementsByTagName('a')).forEach(function(a){ /** Gold Special Links **/ if (a.href.includes('/wiki/Special:')) { a.setAttribute('style', 'color: #BC9312 !important;'); } if (a.href.includes('/w/index.php')) { alert(new URLSearchParams(new URL(a.href).search).get('title')); a.setAttribute('style', 'color: #BC9312 !important;'); }		/** Pink Off-Site Links **/ if (!(a.href.includes('.wikipedia.org'))) { a.setAttribute('style', 'color: #FF00FF !important;'); } }); }); // JBMagination (talk) 17:23, 25 May 2022 (UTC)