Jump to content
Wikipedia The Free Encyclopedia

User:Rusty Cat/common.js

From Wikipedia, the free encyclopedia
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:Rusty Cat/common.css.
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.
 // Automatically purge pages
 if(mw.config.get('wgAction')==='purge'){
 $('form[action*="action=purge"]').submit();
 }

 // portlets
 $.when(mw.loader.using('mediawiki.util'),$.ready).then(function(){
 mw.util.addPortletLink('p-interaction','//typos.toolforge.org/','Correct typos in one click','p-typo','Correct typos in one click tool');
 mw.util.addPortletLink('p-interaction',mw.util.getUrl('WP:EFFPR'),'Edit filter false positives','p-abusefilter','Wikipedia edit filter false positive reports');
 mw.util.addPortletLink('p-personal',mw.util.getUrl('Special:NewPagesFeed'),'Page Curation','pt-pagecuration','View the new pages feed',null,'#pt-preferences');// [[User:Schminnte/PageCuration.js]]
 if(mw.config.get('wgNamespaceNumber')===14){// Category
 letportlet=document.getElementById('p-page')?'p-page':'p-cactions';
 mw.util.addPortletLink(portlet,mw.util.getUrl('Special:RandomInCategory/'+mw.config.get('wgPageName')),'Random in category','p-randomincat');
 }
 });

 // document.addEventListener("keydown", function (event) {
 // 	const searchInput = document.getElementById("searchInput");
 // if (event.key === '/' && document.activeElement !== searchInput) {
 // if (searchInput) {
 // searchInput.focus();
 // event.preventDefault();
 // }
 // }
 // });

 // general purpose
 importScript('User:PleaseStand/userinfo.js');// [[User:PleaseStand/userinfo.js]]

 // antivandalism
 importScript('User:10nm/beta.js');// [[User:10nm/beta.js]]
 importScript('User:Ingenuity/AntiVandal.js');// [[User:Ingenuity/AntiVandal.js]]

 // mainspace editing
 mw.loader.load('/w/index.php?title=User:Evad37/rater.js&action=raw&ctype=text/javascript');// [[User:Evad37/rater.js]]
 mw.loader.load('/w/index.php?title=User:Qwertyytrewqqwerty/DisamAssist.js&action=raw&ctype=text/javascript');// [[User:Qwertyytrewqqwerty/DisamAssist.js]]
 mw.loader.load('/w/index.php?title=User:PerfektesChaos/js/lintHint/r.js&action=raw&maxage=86400&ctype=text/javascript');// [[User:PerfektesChaos/js/lintHint/r.js]]
 mw.loader.load('/w/index.php?title=User:Wugapodes/Capricorn.js&action=raw&ctype=text/javascript');// [[User:Wugapodes/Capricorn.js]]
 importScript('User:Ohconfucius/script/EngvarB.js');// [[User:Ohconfucius/script/EngvarB.js]]
 // mw.loader.load('/w/index.php?title=User:Uziel302/typo.js&action=raw&ctype=text/javascript'); // [[User:Uziel302/typo.js]]

 // management and noticeboards / admin tools
 importScript('User:Elli/OneClickArchiver.js');// [[User:Elli/OneClickArchiver.js]]
 mw.loader.load('/w/index.php?title=User:Max/EFFPRH.js&action=raw&ctype=text/javascript');// [[User:Max/EFFPRH.js]]
 mw.loader.load('/w/index.php?title=User:Suffusion_of_Yellow/effp-helper.js&action=raw&ctype=text/javascript');// [[User:Suffusion of Yellow/effp-helper.js]]
 mw.loader.load('/w/index.php?title=User:Suffusion_of_Yellow/FilterDebugger.js&action=raw&ctype=text/javascript');// [[User:Suffusion of Yellow/FilterDebugger.js]]
 importScript('User:Jackmcbarn/editProtectedHelper.js');// [[User:Jackmcbarn/editProtectedHelper.js]]
 importScript('User:DannyS712/SectionRemover.js');// [[User:DannyS712/SectionRemover.js]]
 importScript('User:DannyS712/SectionMover.js');// [[User:DannyS712/SectionMover.js]]
 importScript('User:Terasail/COI_Request_Tool.js');// [[User:Terasail/COI_Request_Tool.js]]

 mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript');
 importScript('User:SD0001/BDCS.js');// [[User:SD0001/BDCS.js]]

 importScript('User:DannyS712/Draft no cat.js');// [[User:DannyS712/Draft no cat.js]]
 importScript('User:DannyS712/Draft re cat.js');// [[User:DannyS712/Draft re cat.js]]
 mw.loader.load("//pl.wikipedia.org/w/index.php?title=Wikipedysta:Msz2001/abusefilter-analyzer-primer.js&action=raw&ctype=text/javascript");
 importScript('User:Andrybak/Archiver.js');// [[User:Andrybak/Archiver.js]]
 importScript('User:Epicgenius/ArticleQuality.js');// [[User:Epicgenius/ArticleQuality.js]]
 importScript('User:Fred Gandt/confirmLogout.js');// [[User:Fred Gandt/confirmLogout.js]]

 mw.loader.load("http://localhost:5500");// twinkle dev server

 importScript('User:Enterprisey/cv-revdel.js');// [[User:Enterprisey/cv-revdel.js]]
 mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript');
 mw.loader.load('/w/index.php?title=User:MusikAnimal/userRightsManager.js&action=raw&ctype=text/javascript');// [[User:MusikAnimal/userRightsManager.js]]
 importScript('User:MPGuy2824/MoveToDraft.js');// [[User:MPGuy2824/MoveToDraft.js]]
 mw.loader.load('/w/index.php?title=User:GeneralNotability/spihelper.js&action=raw&ctype=text/javascript');// [[User:GeneralNotability/spihelper.js]]
 mw.loader.load('/w/index.php?title=User:Writ_Keeper/Scripts/massRollback.js&action=raw&ctype=text/javascript');// [[User:Writ Keeper/Scripts/massRollback.js]]
 importScript('User:MusikAnimal/responseHelper.js');// [[User:MusikAnimal/responseHelper.js]]
 importScript('User:Enterprisey/unblock-review.js');// [[User:Enterprisey/unblock-review.js]]
 // importScript('User:Headbomb/unreliable.js'); // [[User:Headbomb/unreliable.js]]

 varscriptsToManage={
 'unreliable':'/w/index.php?title=User:Headbomb/unreliable.js&action=raw&ctype=text/javascript'
 };
 importScript('User:MusikAnimal/scriptManager.js');// [[User:MusikAnimal/scriptManager.js]]

 importScript('User:Ahecht/Scripts/pageswap.js');// [[User:Ahecht/Scripts/pageswap.js]]
 importScript('User:BrownHairedGirl/BareURLinline.js');// [[User:BrownHairedGirl/BareURLinline.js]]
 importScript('User:Ohconfucius/dashes.js');

 $.ready(function(){
 importScript('User:Mesidast/Curly_Quotes.js');// [[User:Mesidast/Curly_Quotes.js]]
 importScript('User:Ohconfucius/script/formatgeneral.js');// [[User:Ohconfucius/script/formatgeneral.js]]
 importScript('User:Ohconfucius/script/MOSNUM dates.js');// [[User:Ohconfucius/script/MOSNUM dates.js]]
 });
 importScript('User:Polygnotus/DuplicateReferences.js');// [[User:Polygnotus/DuplicateReferences.js]]
 importScript('User:קיפודנחש/cat-a-lot.js');// [[User:קיפודנחש/cat-a-lot.js]]
 importScript('User:Novem Linguae/Scripts/DraftCleaner.js');// Backlink: [[User:Novem Linguae/Scripts/DraftCleaner.js]]
 importScript('User:Tollens/longCommenter.js');// Backlink: [[User:Tollens/longCommenter.js]]
 importScript('User:BilledMammal/MovePlus.js');// Backlink: [[User:BilledMammal/MovePlus.js]]
 importScript('User:Qwerfjkl/scripts/massXFD.js');// Backlink: [[User:Qwerfjkl/scripts/massXFD.js]]
 importScript('User:SD0001/StubSorter.js');// Backlink: [[User:SD0001/StubSorter.js]]

 mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Nardog/RefRenamer.js&action=raw&ctype=text/javascript');
 importScript('User:Eejit43/scripts/afcrc-helper.js');// Backlink: [[User:Eejit43/scripts/afcrc-helper.js]]
 // mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:%C3%9Ejarkur/NeverUseMobileVersion.js&action=raw&ctype=text/javascript" );
 importScript('User:Rusty Cat/undo-multi.js');// Backlink: [[User:Rusty Cat/undo-multi.js]]
 importScript('User:Ponor/wAwB.js');// Backlink: [[User:Ponor/wAwB.js]]

AltStyle によって変換されたページ (->オリジナル) /