Jump to content

User:Retro/common.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// 2022-07-15: comment out this section because I'm not sure it's still necessary
// Make page tabs avoid going directly to a redirect page's target
// if ($("#p-namespaces a")[0].className.includes('mw-redirect')) $("#p-namespaces a")[0].href += '?redirect=no';
// if ($("#ca-view a")[0].className.includes('mw-redirect')) $("#ca-view a")[0].href += '?redirect=no';

// 2022-07-15: comment out dynamically loaded remote scripts for now
// importScript('User:Ucucha/duplinks.js'); // [[User:Ucucha/duplinks]]
// importScript('User:Ucucha/HarvErrors.js'); // [[User:Lingzhi/reviewsourcecheck]]
// importScript('User:Lingzhi/reviewsourcecheck.js');
// importScript('Wikipedia:AutoEd/complete.js');

// TODO: finish my update of this script.
// importScript('User:Retro/scripts/unicategorize.js');
// mw.loader.load("//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:HarJIT/Scripts/unicategorise.js");
// mw.loader.load("//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Retro/Scripts/unicategorise.js");