User:Retro/common.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
The accompanying .css page for this skin is at User:Retro/common.css. |
// 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");