🇮🇷 Iran Proxy | https://www.wikipedia.org/wiki/User:Asilvering/common.js
Jump to content

User:Asilvering/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.
// if you want to conditionally load scripts depending on namespace or page name like I do below, you need to add this to your common.js
const ns = mw.config.get('wgNamespaceNumber');
const page = mw.config.get('wgPageName');

// If you're a newbie reading this, I recommend installing the following:
importScript('User:Evad37/rater.js'); // This one helps you easily add wikiprojects to articles, and assign ratings to them
importScript('User:Headbomb/unreliable.js'); // Backlink: [[User:Headbomb/unreliable.js]]; this helps identify sources that are known to be unreliable  
importScript('User:SuperHamster/CiteUnseen.js'); // Backlink: [[User:SuperHamster/CiteUnseen.js]]; as above 

// SPI
if (page.startsWith('Wikipedia:Sockpuppet_investigations')) {
	importScript('User:GeneralNotability/spihelper.js'); // Backlink: [[User:GeneralNotability/spihelper.js]]
	importScript('User:Daniel Quinlan/Scripts/SockTags.js'); // Backlink: [[User:Daniel Quinlan/Scripts/SockTags.js]]
	importScript('User:Daniel Quinlan/Scripts/SockDecay.js'); // Backlink: [[User:Daniel Quinlan/Scripts/SockDecay.js]]
}

if (ns === 14) {
	importScript('User:Daniel Quinlan/Scripts/SockDecay.js'); // Backlink: [[User:Daniel Quinlan/Scripts/SockDecay.js]]
}

// user talk scripts 
if (ns === 3) {
	importScript('User:Novem Linguae/Scripts/UserTalkErasedSectionsDetector.js'); // Backlink: [[User:Novem Linguae/Scripts/UserTalkErasedSectionsDetector.js]]
	importScript('User:TheresNoTime/Scripts/CT-Helper.js'); // Backlink: [[User:TheresNoTime/Scripts/CT-Helper.js]]
	importScript('User:Novem Linguae/Scripts/UnblockReview.js'); // Backlink: [[User:Novem Linguae/Scripts/UnblockReview.js]]
}

// other visual
importScript('User:Daniel Quinlan/Scripts/Unfiltered.js'); // Backlink: [[User:Daniel Quinlan/Scripts/Unfiltered.js]]
importScript('User:Þjarkur/NeverUseMobileVersion.js'); // Backlink: [[User:Þjarkur/NeverUseMobileVersion.js]]
importScript('User:Daniel Quinlan/Scripts/UserHighlighter.js'); // Backlink: [[User:Daniel Quinlan/Scripts/UserHighlighter.js]]

// writing and editing
if (ns === 0 || ns === 2 || ns === 118) {
	importScript('User:Trappist the monk/HarvErrors.js');  // Backlink: [[User:Trappist the monk/HarvErrors.js]]
	importScript('User:Ucucha/duplinks.js'); // [[User:Ucucha/duplinks]]
}

// AfC, NPP, and deletion - non-admin actions
if (ns === 0 || ns === 2 || ns === 118) {
	mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );
	importScript('User:DannyS712/deOrphan.js'); // Backlink: [[User:DannyS712/deOrphan.js]]
	importScript('User:MPGuy2824/MoveToDraft.js'); // Backlink: [[User:MPGuy2824/MoveToDraft.js]]
	importScript('User:Mr. Stradivarius/gadgets/Draftify.js'); // Linkback: [[User:Mr. Stradivarius/gadgets/Draftify.js]]
	importScript('User:Schminnte/PageCuration.js'); // Backlink: [[User:Schminnte/PageCuration.js]]
	importScript('User:Sohom_Datta/fastreview.js'); // Backlink: [[User:Sohom_Datta/fastreview.js]]
	importScript('User:Novem Linguae/Scripts/DetectG4G5.js'); // Backlink: [[User:Novem Linguae/Scripts/DetectG4G5.js]]
	importScript('User:Novem_Linguae/Scripts/NPPLinks.js'); // Backlink: [[User:Novem_Linguae/Scripts/NPPLinks.js]]
	importScript('User:CFA/scripts/attributetranslation.js'); // Backlink: [[User:CFA/scripts/attributetranslation.js]]
}

// as above, but draftspace only 
if (ns === 118) {
	importScript('User:Novem Linguae/Scripts/DraftCleaner.js'); // Backlink: [[User:Novem Linguae/Scripts/DraftCleaner.js]]
	importScript('User:DannyS712/Draft no cat.js'); // Backlink: [[User:DannyS712/Draft no cat.js]]
}

// revdel and copyright 
//importScript('User:Enterprisey/cv-revdel.js'); // Backlink: [[User:Enterprisey/cv-revdel.js]] this commented-out one is helpful for making revdel requests if you aren't an admin
importScript('User:Enterprisey/url-select-revdel.js'); // Backlink: [[User:Enterprisey/url-select-revdel.js]]
importScript('User:The_Earwig/revdel-responder.js'); // Backlink: [[User:The_Earwig/revdel-responder.js]]
importScript('User:Writ Keeper/Scripts/massRevdel.js'); // Backlink: [[User:Writ Keeper/Scripts/massRevdel.js]]

// discussion closing 
if (ns === 1 || ns === 4 || ns === 5) {
	importScript('User:TheTVExpert/rmCloser.js'); // Backlink: [[User:TheTVExpert/rmCloser.js]]
	importScript('User:DaxServer/DiscussionCloser.js'); // Backlink: [[User:DaxServer/DiscussionCloser.js]]
	importScript('User:Eejit43/scripts/rmtr-helper.js'); // Backlink: [[User:Eejit43/scripts/rmtr-helper.js]]
	importScript('User:Novem Linguae/Scripts/VoteCounter.js'); // Backlink: [[User:Novem Linguae/Scripts/VoteCounter.js]]
}

// admin stuff 
importScript('User:SD0001/quickViewDeleted.js'); // Backlink: [[User:SD0001/quickViewDeleted.js]]
importScript('User:SD0001/RFUD-helper.js'); // Backlink: [[User:SD0001/RFUD-helper.js]]
importScript('User:MusikAnimal/userRightsManager.js'); // Backlink: [[User:MusikAnimal/userRightsManager.js]]
importScript('User:Daniel Quinlan/Scripts/RangeHelper.js'); // Backlink: [[User:Daniel Quinlan/Scripts/RangeHelper.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:WhitePhosphorus/js/all-in-one.js&action=raw&ctype=text/javascript');

// Misc
// importScript('User:Novem Linguae/Scripts/GANReviewTool.js'); // Backlink: [[User:Novem Linguae/Scripts/GANReviewTool.js]]
// importScript('User:Eejit43/scripts/redirect-helper.js'); // Backlink: [[User:Eejit43/scripts/redirect-helper.js]]
importScript('User:SD0001/UnassessedArticleLinks.js'); // Backlink: [[User:SD0001/UnassessedArticleLinks.js]]
importScript('User:Nardog/MoveHistory.js'); // Backlink: [[User:Nardog/MoveHistory.js]]
importScript('User:Writ Keeper/Scripts/massRollback.js'); // Backlink: [[User:Writ Keeper/Scripts/massRollback.js]]
importScript('User:Bradv/Scripts/Superlinks.js'); // Backlink: [[User:Bradv/Scripts/Superlinks.js]]
// importScript('User:L235/wordCountsByEditor.js'); // Backlink: [[User:L235/wordCountsByEditor.js]]
// importScript('User:L235/wordCountsByEditor-beta.js'); // Backlink: [[User:L235/wordCountsByEditor-beta.js]]
// importScript('User:Daniel Quinlan/Scripts/Rescaled.js'); // Backlink: [[User:Daniel Quinlan/Scripts/Rescaled.js]]
importScript('User:Ale_jrb/Scripts/csdhelper.js');  //[[User:Ale_jrb/Scripts]]
importScript('User:Novem Linguae/Scripts/ReFillLink.js'); // Backlink: [[User:Novem Linguae/Scripts/ReFillLink.js]]
//importScript('User:Animum/massdelete.js'); // Backlink: [[User:Animum/massdelete.js]]
importScript('User:Daniel Quinlan/Scripts/Catatonic.js'); // Backlink: [[User:Daniel Quinlan/Scripts/Catatonic.js]]
importScript('User:Dbeef/cplus.js'); // Backlink: [[User:Dbeef/cplus.js]]
importScript('User:GeneralNotability/InvestorGoat.js'); // Backlink: [[User:GeneralNotability/InvestorGoat.js]]
importScript('User:Bradv/Scripts/ExpandDiffs.js'); // Backlink: [[User:Bradv/Scripts/ExpandDiffs.js]]
importScript('User:Bellezzasolo/Scripts/arb.js'); // Backlink: [[User:Bellezzasolo/Scripts/arb.js]]