Jump to content

User:Sam Sailor/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.
// --- TOC ---
//	VARIOUS
//	SPECIAL PAGES
//		CONTRIBUTIONS
//		LOG
//		MOVEPAGE
//		RECENTCHANGES
//		SEARCH
//		USERRIGHTS
//		WATCHLIST
//		WHATLINKSHERE
//	NOT SPECIAL
//	ARTICLES AND DRAFTS
//	DRAFTS
//	ARTICLES AND TALK
//	ARTICLES
//	ANYWHERE BUT ARTICLES
//		PROJECT SPACE
//		USER SPACE AND USER TALK SPACE
//		CATEGORIES
//		FILES
//		TEMPLATES
//		WP AND TALK SPACES
//	CONTRIBS, HISTORY, RECENT CHANGES, WATCHLIST
//	CONTRIBS, HISTORY
//	ID RELATED
// --- END TOC ---

// VARIOUS
// Quick links
$(function () {
	mw.util.addPortletLink('p-personal', '//tools.wmflabs.org/copypatrol/en', 'CP', 'p-copypatrol', 'Copyright patrol');
	mw.util.addPortletLink('p-personal', '//en.wikipedia.org/w/index.php?title=Special:Log&user=Sam%20Sailor', 'Logs', 'pt-mylogs', 'Your logged actions', '', '#pt-logout');
	mw.util.addPortletLink('p-personal', '//en.wikipedia.org/w/index.php?title=Special:NewPages&dir=prev&hidepatrolled=1&hideredirs=0', 'NPP', 'p-npp', 'NPP');
	mw.util.addPortletLink('p-personal', '//en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Script', 'JWB', 'p-jwb', 'JWB');
	mw.util.addPortletLink('p-navigation', mw.util.getUrl('Special:RandomRedirect'), 'Random redirect', 'n-randomredirect', 'Load a random redirect', 'a');
});
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/hide.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/hide.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ahecht/Scripts/refresh.js&action=raw&ctype=text/javascript'); // [[User:Ahecht/Scripts/refresh.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ahecht/Scripts/pageswap.js&action=raw&ctype=text/javascript'); // [[User:Ahecht/Scripts/pageswap.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Bradv/Scripts/Superlinks.js&action=raw&ctype=text/javascript'); // [[User:Bradv/Scripts/Superlinks.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Enterprisey/talk-tab-count.js&action=raw&ctype=text/javascript'); // [[User:Enterprisey/talk-tab-count.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:SilverLocust/UserUnderline.js&action=raw&ctype=text/javascript'); // [[User:SilverLocust/UserUnderline.js]]
// SPECIAL PAGES
if (mw.config.get('wgCanonicalNamespace') === 'Special') {
	// 
	// CONTRIBUTIONS
	if (mw.config.get('wgCanonicalSpecialPageName') === 'Contributions') {
		// ContribsByPage
		//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/ContribsByPage.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/ContribsByPage.js]]
		// ContribSearch
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/ContribSearch.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/ContribSearch.js]]
		// Examine edits
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/Examine_edits.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/Examine edits.js]]
		// hidetopcontrib by Markhurd
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Markhurd/hidetopcontrib.js&action=raw&ctype=text/javascript'); // [[User:Markhurd/hidetopcontrib.js]]
		window.userHideAllSubsequent = true;
		// Kill-It-With-Fire
		//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Alexis_Jazz/Kill-It-With-Fire.js&action=raw&ctype=text/javascript'); // [[User:Alexis Jazz/Kill-It-With-Fire.js]]
		// massRollback
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/massRollback.js&action=raw&ctype=text/javascript'); // [[User:Writ Keeper/Scripts/massRollback.js]]
		// more-block-info
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Firefly/more-block-info.js&action=raw&ctype=text/javascript'); // [[User:Firefly/more-block-info.js]]
		// watchUserContribs
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Fred_Gandt/watchUserContribs.js&action=raw&ctype=text/javascript'); // [[User:Fred Gandt/watchUserContribs.js]]
	} // END CONTRIBUTIONS
	// LOG
	} else if (mw.config.get('wgCanonicalSpecialPageName') === 'Log') {
		// Pretty rights log
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/Pretty_rights_log.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/Pretty rights log.js]]
	// END LOG
	// MOVEPAGE
	} else if (mw.config.get('wgCanonicalSpecialPageName') === 'MovePage') {
		// Automatically tick the "Move subpages" option when moving pages.
		var moveSubpagesBox=document.getElementsByName("wpMovesubpages")[0];void 0!==moveSubpagesBox&&(moveSubpagesBox.checked=!0);
		// RemoveDoubleNamespace
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Alexis_Jazz/RemoveDoubleNamespace.js&action=raw&ctype=text/javascript'); // [[User:Alexis Jazz/RemoveDoubleNamespace.js]]
		// CombineMovePrefix
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:SilverLocust/CombineMovePrefix.js&action=raw&ctype=text/javascript'); // [[User:SilverLocust/CombineMovePrefix.js]]
	// END MOVEPAGE
	// RECENTCHANGES
	} else if (mw.config.get('wgCanonicalSpecialPageName') === 'RecentChanges') {
		// Color top links
		mw.util.addCSS(".mw-rollback-link { background-color:#FFFF88; }");
		// rcpatrol [[User:Awesome Aasim/rcpatrol]]
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Awesome_Aasim/rcpatrol.js&action=raw&ctype=text/javascript'); // [[User:Awesome Aasim/rcpatrol.js]]
	// END RECENTCHANGES
	// SEARCH
	} else if (mw.config.get('wgCanonicalSpecialPageName') === 'Search') {
		// EnhancedSearchPage
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:JAAqqO/EnhancedSearchPage.js&action=raw&ctype=text/javascript'); // [[User:JAAqqO/EnhancedSearchPage.js]]
		// Search sort
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:PrimeHunter/Search_sort.js&action=raw&ctype=text/javascript'); // [[User:PrimeHunter/Search sort.js]]
		// search-links
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Eejit43/scripts/search-links.js&action=raw&ctype=text/javascript'); // [[User:Eejit43/scripts/search-links.js]]
		// SearchSuite
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:The_Transhumanist/SearchSuite.js&action=raw&ctype=text/javascript'); // [[User:The Transhumanist/SearchSuite.js]]
	// END SEARCH
	// USERRIGHTS
	} else if (mw.config.get('wgCanonicalSpecialPageName') === 'UserRights') {
		// Pretty rights log
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/Pretty_rights_log.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/Pretty rights log.js]]
	// END USERRIGHTS
	// WATCHLIST
	} else if (mw.config.get('wgCanonicalSpecialPageName') === 'Watchlist') {
		// Thanky
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Evad37/Thanky.js&action=raw&ctype=text/javascript'); // [[User:Evad37/Thanky.js]]
	// END WATCHLIST
	// WHATLINKSHERE
	} else if (mw.config.get('wgCanonicalSpecialPageName') === 'WhatLinksHere') {
		// AddActionLinks
		//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:He7d3r/Tools/AddActionLinks.js&action=raw&ctype=text/javascript'); // [[meta:User:He7d3r/Tools/AddActionLinks.js]]
		// SortWhatLinksHere [[User:GhostInTheMachine/SortWhatLinksHere]]
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:GhostInTheMachine/SortWhatLinksHere.js&action=raw&ctype=text/javascript'); // [[User:GhostInTheMachine/SortWhatLinksHere.js]]
		// Source links
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:PrimeHunter/Source_links.js&action=raw&ctype=text/javascript'); // [[User:PrimeHunter/Source links.js]]
		// whatLinksHereLinkFilter
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:V111P/js/whatLinksHereLinkFilter.js&action=raw&ctype=text/javascript'); // [[User:V111P/js/whatLinksHereLinkFilter.js]]
	// END WHATLINKSHERE
// END SPECIAL PAGES
} else {
// Load scripts that should not load on a special page
// NOT SPECIAL
	// HotCat edit summary prompt fix ([[Special:PermaLink/895804159]])
	if (mw.config.get('wgAction') === 'edit' || mw.config.get('wgAction') === 'submit') {
		$(function () {
			if (document.getElementsByName("wpSummary")[0].value.indexOf('WP:HC|HotCat') !== -1 && document.getElementsByName('wpAutoSummary')[0]) {
				document.getElementsByName('wpAutoSummary')[0].value = '1';
			}
		});
	}
	window.hotcat_use_category_links = true;
	/*
	// Add (nr) 'no redirect' links after redirects ([[Special:PermaLink/1114527221]])
	mw.hook( 'wikipage.content' ).add(function ($el) {
		if ( mw.config.get('wgAction') !== 'view' ) {
			return;
		}
	$el.find( '.mw-redirect' ).each(function (i, e) {
		var sub = document.createElement("sub");
		sub.append("(");
		var link = document.createElement("a");
		var url = new URL(e.getAttribute("href"), window.location.href);
		url.searchParams.set("redirect", "no");
		link.setAttribute("href", url.toString());
		link.setAttribute("title", "Open the link without following redirects");
		link.innerText = "nr";
		sub.appendChild(link);
		sub.append(")");
		e.insertAdjacentElement("afterend", sub);
		});
	});
	*/
	// Null edit (modified from [[Special:PermaLink/1083287384]]) [[User:BrandonXLF/NullEdit.js]]
	$(mw.util.addPortletLink('p-personal', '#', 'Null edit')).click(function (e) {
		e.preventDefault();
		new mw.Api().edit(mw.config.get('wgPageName'), function(rev) {
			return rev.content;
		}).then(function () {
			window.location.reload();
		});
	});
	/*
	// Always scroll to top when previewing ([[Special:PermaLink/1229177866]])
	(function (){
		const allowedActions = ['edit', 'submit'];
		if(allowedActions.indexOf(mw.config.get("wgAction")) != -1){
			setTimeout(function () {
				window.scrollTo({ top: 0});
			}, 1000);
		}
	})();
	*/
	/* mw.loader.using("mediawiki.util", function () {
		var dashButton = mw.util.addPortletLink("p-cactions", "#", "En dash", "ca-enDashCopy", "Copy EnDash");
		$(dashButton).click(function () { navigator.clipboard.writeText("–"); });
	});
	*/
	// Alex 21/script-functions [[User:Alex 21/script-functions]]
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Alex_21/script-functions.js&action=raw&ctype=text/javascript'); // [[User:Alex 21/script-functions.js]]
	// Aligner [[User:Taavi/Aligner]]
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Taavi/Aligner.js&action=raw&ctype=text/javascript'); // [[User:Taavi/Aligner.js]]
	window.alignerExtraSearches = [
		'{{AFLGameDetailed',
		'{{Audio sample',
		'{{Discography list',
		'{{Episode list',
		'{{External music video',
		'{{Extra album cover',
		'{{Extra chronology',
		'{{Extra tour chronology',
		'{{Extra track listing',
		'{{Location map',
		'{{Location map~',
		'{{Location map+',
		'{{Multiple image',
		'{{Non-free',
		'{{Quote box',
		'{{Rugbyleaguebox',
		'{{Rugby league match squad',
		'{{Rugby league squad player',
		'{{Series overview',
		'{{Singles',
		'{{Speciesbox',
		'{{Subspeciesbox',
		'{{Taxobox',
		'{{Track listing',
		'{{Tweet',
	];
	// auto-watchlist-expiry [[User:Rummskartoffel/auto-watchlist-expiry]]
	window.autoWatchlistExpiry = { "edit": "2 weeks", "delete": "6 months", "create": "infinite", "undo": "2 weeks" };
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Rummskartoffel/auto-watchlist-expiry.js&action=raw&ctype=text/javascript'); // [[User:Rummskartoffel/auto-watchlist-expiry.js]]
	// autoFormatterSettings [[User:Sam Sailor/Scripts/autoFormatterSettings]]
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Sam_Sailor/Scripts/autoFormatterSettings.js&action=raw&ctype=text/javascript'); // [[User:Sam Sailor/Scripts/autoFormatterSettings.js]]
	// Capricorn [[User:Wugapodes/Capricorn]]
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Wugapodes/Capricorn.js&action=raw&ctype=text/javascript'); // [[User:Wugapodes/Capricorn.js]]
	// Citation Remover [[User:GrabUp/Citation Remover]]
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:GrabUp/Citation_Remover.js&action=raw&ctype=text/javascript'); // [[User:GrabUp/Citation Remover.js]]
	// csdhelper [[User:Ale_jrb/Scripts]]
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ale_jrb/Scripts/csdhelper.js&action=raw&ctype=text/javascript'); // [[User:Ale_jrb/Scripts/csdhelper.js]]
	// Configuration for CSD Helper
	var overwriteDeclineReasons = true;
	var notifyByDefaultDel = false; // whether to automatically check the 'notify user' box when changing a speedy deletion rationale
	var notifyByDefaultDec = false; // whether to automatically check the 'notify user' box when declining a speedy deletion
	var notifyByDefaultPrd = false; // whether to automatically check the 'notify user' box when converting a speedy deletion to a PROD
	var notifyByDefaultNew = false; // whether to automatically check the 'use newbie message' box when notifying a user
	var myDeclineListing = '%CRITERION%: %REASON%';
	var myDeclineSummary = 'Declining speedy (%CRITERION%) — %REASON%';
	var myDeclineSummarySpecial = 'Declining speedy — %REASON%';
	var logOnDecline = true;
	var logOnDeclinePath = 'User:Sam Sailor/Declined speedies log';
	var overwriteDeclineReasons = true;
	// csdreasons
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:SoWhy/csdreasons.js&action=raw&ctype=text/javascript'); // [[User:SoWhy/csdreasons.js]]
	// CustomSummaryPresets [[User:Enterprisey/CustomSummaryPresets]]
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Enterprisey/CustomSummaryPresets.js&action=raw&ctype=text/javascript'); // [[User:Enterprisey/CustomSummaryPresets.js]]
	var customNamespaceSummaries = {
		'0': [
		"- not a recognised image file. Images must be uploaded first, see [[WP:UPIMAGE]] (copyright allowing).",
		"Not a recognised image file. Images must be uploaded first, see [[WP:UPIMAGE]] (copyright allowing).",
		"- changing a file name in-text breaks the link to the file. Please use [[H:PREVIEW|preview]] to avoid the mistake.",
		"Changing a file name in-text breaks the link to the file. Please use [[H:PREVIEW|preview]] to avoid the mistake.",
		"Fixing infobox errors",
		"[[Help:Wikitext|WikiSyntax]] fixes; citation fixes per [[Help:Citation Style 1|CS1]]; [[WP:COPYEDIT|copyediting]] per the [[Wikipedia:Manual of Style|Manual of Style]]; [[User:Sam Sailor/Scripts/Tidy citations.js|tidy citations]]",
		"Infobox fix(es); [[Help:Wikitext|WikiSyntax]] fixes; citation fixes per [[Help:Citation Style 1|CS1]]; [[WP:COPYEDIT|copyediting]] per the [[Wikipedia:Manual of Style|Manual of Style]]; [[User:Sam Sailor/Scripts/Tidy citations.js|tidy citations]]",
		"Adding [[Wikipedia:Citing sources|citation]]",
		"Adding [[Help:Interlanguage links|interlanguage links]] etc.",
		"Article is no longer unreferenced – and [[WP:URA|you can help!]]",
		"[[WP:SALORDER|Chronological ordering]]",
		"Citation fixes per [[Help:Citation Style 1|CS1]]; [[WP:COPYEDIT|copyediting]] per the [[Wikipedia:Manual of Style|Manual of Style]]; [[User:Sam Sailor/Scripts/Tidy citations.js|tidy citations]]",
		"[[WP:DUPREF|Combining duplicated citations]]",
		"[[WP:FIXDABLINKS|Repairing]] links to disambiguation page - and [[Wikipedia:Disambiguation pages with links|you can help!]]",
		"Removing [[Template:Broken ref/cite error list|inapplicable tag]]",
		"{{[[Template:Prod blp|Prod blp]]}} applies only when the article contains no sources in any form (as references, external links, etc.) which support any statements made about the person in the biography, see [[WP:BLPPROD]].",
		"Per [[MOS:SEEALSO]]/[[MOS:NOTSEEALSO]]",
		"Removing [[WP:SELFREDIRECT]] etc.",
		"#NOV24 – Article is no longer unreferenced – and [[WP:URA|you can help!]]",
		],
		'1': [
		"Comment",
		"Reply",
		"Suggestion",
		],
		'3': [
		"Friendly message",
		"Comment",
		"Reply",
		"Suggestion",
		],
		'10': [
		"Per [[WP:NAVNOREDIRECT]]",
		],
		'118': [
		"Clean-up, [[WP:COPYEDIT|copyediting]] and various fixes",
		],
	};
	// External Links Remover [[User:GrabUp/External Links Remover]]
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:GrabUp/External_Links_Remover.js&action=raw&ctype=text/javascript'); // [[User:GrabUp/External Links Remover.js]]
	// findargdups [[User:Frietjes/findargdups]]
	findargdupsresultsbox = 'yes';
	findargdupsnonefound = 'No dupes!';
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Frietjes/findargdups.js&action=raw&ctype=text/javascript'); // [[User:Frietjes/findargdups.js]]
	// highlightPiped
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Jeeputer/highlightPiped.js&action=raw&ctype=text/javascript'); // [[User:Jeeputer/highlightPiped.js]]
	// linkclassifier
	mw.hook('LinkClassifier').add(function (linkClassifier) {
		linkClassifier.cats['redirect-with-possibilities'] = ['Category:Redirects with possibilities'].sort();
	});
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Anomie/linkclassifier.js&action=raw&ctype=text/javascript'); // [[User:Anomie/linkclassifier.js]]
	importStylesheet('User:Anomie/linkclassifier.css');
	// massretarget
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Andy_M._Wang/massretarget.js&action=raw&ctype=text/javascript'); // [[User:Andy M. Wang/massretarget.js]]
	// move-links
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Danski454/move-links.js&action=raw&ctype=text/javascript'); // [[User:Danski454/move-links.js]]
	// subsearch
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:PleaseStand/subsearch.js&action=raw&ctype=text/javascript'); // [[User:PleaseStand/subsearch.js]]
	// ToDoLister
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Evad37/ToDoLister.js&action=raw&ctype=text/javascript'); // [[User:Evad37/ToDoLister.js]]
	//var todo_portlet = "p-cactions"; // Defines which portlet menu the link is added to - see [[Help:Customizing toolbars]] for options
	//var todo_subpage = "UPtodo";     // Subpage where the to-do list entry be added
	//var todo_addfirst = "yes";       // Replace null with any value, e.g. "yes" (including quotation marks) to show the Add link before the View link.
	//var todo_viewnew = "yes";        // Replace null with any value, e.g. "yes" (including quotation marks) to make the View link open in a new tab or window.
	//var todo_viewlabel = "→todo";
	//var todo_addlabel = "+todo";
// END NOT SPECIAL
// ARTICLES AND DRAFTS
if (mw.config.get('wgNamespaceNumber') === 0 || mw.config.get('wgNamespaceNumber') === 118) {
	// scriptManager
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:MusikAnimal/scriptManager.js&action=raw&ctype=text/javascript'); // [[User:MusikAnimal/scriptManager.js]]
	scriptsToManage = {
		"Add Citation Needed" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Phlsph7/AddCitationNeededTagsToUnreferencedParagraphs.js",
		"Books to sfn" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:DaxServer/BooksToSfn.js",
		"Duplinks" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Aaron_Liu/duplinks.js",
		"Fixing Ur Ciatations" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Alexis_Jazz/FUC.js",
		"Highlight Unreferenced Passages" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Phlsph7/HighlightUnreferencedPassages.js",
		"List Unreferenced Paragraphs" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Phlsph7/ListUnreferencedParagraphs.js",
		"OHC Common Terms" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Ohconfucius/script/Common_Terms.js",
		"OHC Dashes" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Ohconfucius/dashes.js",
		"OHC EngvarB" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Ohconfucius/script/EngvarB.js",
		"Readability" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Phlsph7/Readability.js",
		"Reference Deselector" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Chlod/Scripts/ReferenceDeselector.js",
		"Show nbsp" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Evad37/showhardspaces.js",
	};
	// Advisor
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ebrahames/Advisor.js&action=raw&ctype=text/javascript'); // [[User:Ebrahames/Advisor.js]]
	// Automatic Referencing Assistant
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:TheJJJunk/ARA.js&action=raw&ctype=text/javascript'); // [[User:TheJJJunk/ARA.js]]
	// Autoref, requires Citoid (BrandonXLF)
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/Autoref.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/Autoref.js]]
	// categoriessort [[User:Alex 21/script-categoriessort]]
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Alex_21/script-categoriessort.js&action=raw&ctype=text/javascript'); // [[User:Alex 21/script-categoriessort.js]]
	// CitationStyleMarker
	window.CSMarkerMode = 'both';
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/CitationStyleMarker.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/CitationStyleMarker.js]]
 	// CiteHighlighter
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Novem_Linguae/Scripts/CiteHighlighter.js&action=raw&ctype=text/javascript'); // [[User:Novem Linguae/Scripts/CiteHighlighter.js]]
	// citetrans. Notes: Installed 2019-06-16; 2024-08: disabled at some point in time, I have not missed it.
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Frietjes/citetrans.js&action=raw&ctype=text/javascript'); // [[User:Frietjes/citetrans.js]]
	// Citoid (BrandonXLF), required for [[User:BrandonXLF/Autoref]]
	mw.loader.getScript('https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/Citoid.js&action=raw&ctype=text/javascript').then(function(){
		getCitoidRef('9781857800913').then(function(ref){
			console.log(ref);
		});
	});
	// cv-revdel
 	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Enterprisey/cv-revdel.js&action=raw&ctype=text/javascript'); // [[User:Enterprisey/cv-revdel.js]]
 	// CVD (Copy-Violation Detector)
	//var dupdet = true;
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ahecht/Scripts/CVD.js&action=raw&ctype=text/javascript'); // [[User:Ahecht/Scripts/CVD.js]]
	// deorphanizer
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/deorphanizer.js&action=raw&ctype=text/javascript'); // [[User:Writ Keeper/Scripts/deorphanizer.js]]
	// DuplicateReferences
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Polygnotus/DuplicateReferences.js&action=raw&ctype=text/javascript'); // [[User:Polygnotus/DuplicateReferences.js]]
	// DYKcheck
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Shubinator/DYKcheck.js&action=raw&ctype=text/javascript'); // [[User:Shubinator/DYKcheck.js]]
	// EditWarChecker
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Evad37/EditWarChecker.js&action=raw&ctype=text/javascript'); // [[User:Evad37/EditWarChecker.js]]
	// HarvErrors
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:trappist_the_monk/HarvErrors.js&action=raw&ctype=text/javascript'); // [[User:trappist the monk/HarvErrors.js]]
	// (Pseudo) Headings
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Guywan/Scripts/Headings.js&action=raw&ctype=text/javascript'); // [[User:Guywan/Scripts/Headings.js]]
	// highlight-homographs
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Eejit43/scripts/highlight-homographs.js&action=raw&ctype=text/javascript'); // [[User:Eejit43/scripts/highlight-homographs.js]]
	// HotDefaultSort
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/HotDefaultSort.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/HotDefaultSort.js]]
	// IABooks. Notes: 2019-04-02; disabled 2019-06-16, seldom used
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Reinischmax/IABooks.js&action=raw&ctype=text/javascript'); // [[User:Reinischmax/IABooks.js]]
	// IllWill
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Cobaltcigs/IllWill.js&action=raw&ctype=text/javascript'); // [[User:Cobaltcigs/IllWill.js]]
	// ListSorter
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/ListSorter.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/ListSorter.js]]
	// MergeDuplicateRefs
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ingenuity/MergeDuplicateRefs.js&action=raw&ctype=text/javascript'); // [[User:Ingenuity/MergeDuplicateRefs.js]]
	// MoreDiffInfo [[User:BrandonXLF/MoreDiffInfo]]
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/MoreDiffInfo.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/MoreDiffInfo.js]]
	// Reference Organizer [[User:Kaniivel/Reference Organizer]]
	if (typeof(refConsolidateConfig) === 'undefined') refConsolidateConfig = {};
	refConsolidateConfig.sort = true;
	refConsolidateConfig.usetemplateR = false;
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Kaniivel/RefConsolidate_start.js&action=raw&ctype=text/javascript'); // [[User:Kaniivel/RefConsolidate start.js]]
	// RefRenamer
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Nardog/RefRenamer.js&action=raw&ctype=text/javascript'); // [[User:Nardog/RefRenamer.js]]
	// reviewsourcecheck
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Lingzhi2/reviewsourcecheck.js&action=raw&ctype=text/javascript'); // [[User:Lingzhi2/reviewsourcecheck.js]]
	// smaller templates
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Gary/smaller_templates.js&action=raw&ctype=text/javascript'); // [[User:Gary/smaller templates.js]]
	// sortcategories [[User:Epicgenius/sortcategories]] fork of [[User:Alex 21/script-categoriessort.js]]
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Epicgenius/sortcategories.js&action=raw&ctype=text/javascript'); // [[User:Epicgenius/sortcategories.js]]
	// subjects age from year
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Gary/subjects_age_from_year.js&action=raw&ctype=text/javascript'); // [[User:Gary/subjects age from year.js]]
	// Tidy citations
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Sam_Sailor/Scripts/Tidy_citations.js&action=raw&ctype=text/javascript'); // [[User:Sam Sailor/Scripts/Tidy citations.js]]
	// TitleCaseConverter
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:ZKang123/TitleCaseConverter.js&action=raw&ctype=text/javascript'); // [[User:ZKang123/TitleCaseConverter.js]]
	// w2wFinder. Notes: Installed 2019-04-17. Disabled again, far too many false positives with the current configuration, [[Special:PermaLink/874614199]].
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Danski454/w2wFinder.js&action=raw&ctype=text/javascript'); // [[User:Danski454/w2wFinder.js]]
} // END ARTICLES AND DRAFTS
// DRAFTS
if (mw.config.get('wgNamespaceNumber') === 118) {
	// Draft no cat
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/Draft_no_cat.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/Draft no cat.js]]
	// Draft re cat
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/Draft_re_cat.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/Draft re cat.js]]
	// draft-sorter (Ahecht)
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ahecht/Scripts/draft-sorter.js&action=raw&ctype=text/javascript'); // [[User:Ahecht/Scripts/draft-sorter.js]]
	// DraftCleaner
	window.draftCleanerPutInMoreMenu = true;
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Novem_Linguae/Scripts/DraftCleaner.js&action=raw&ctype=text/javascript'); // [[User:Novem Linguae/Scripts/DraftCleaner.js]]
	// DraftDiff
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Firefly/draftdiff.js&action=raw&ctype=text/javascript'); // [[User:Firefly/draftdiff.js]]
	// edits-since-decline [[User:SD0001/edits-since-decline]]
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:SD0001/edits-since-decline.js&action=raw&ctype=text/javascript'); // [[User:SD0001/edits-since-decline.js]]
} // END DRAFTS
// ARTICLES AND TALK
if ((mw.config.get('wgNamespaceNumber') === 0) || (mw.config.get('wgNamespaceNumber') === 1)) {
	// logger
	var pagesToCollect = [
		{page: 'User:Sam Sailor/AATP log', caption: '+AATP log'},
		{page: 'User:Sam Sailor/ALS log', caption: '+ALS log'},
		{page: 'User:Sam Sailor/MISSFILE log', caption: '+MISSFILE log'},
		{page: 'User:Sam Sailor/Sourced log', caption: '+Sourced log'}
	];
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Sam_Sailor/Scripts/logger.js&action=raw&ctype=text/javascript'); // [[User:Sam Sailor/logger.js]]
	// MoveToDraft
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:MPGuy2824/MoveToDraft.js&action=raw&ctype=text/javascript'); // [[User:MPGuy2824/MoveToDraft.js]]
	// PageMoverClosure
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/PageMoverClosure.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/PageMoverClosure.js]]
	// rater by Evad37
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Evad37/rater.js&action=raw&ctype=text/javascript'); // [[User:Evad37/rater.js]]
} // END ARTICLES AND TALK
// ARTICLES
if (mw.config.get('wgNamespaceNumber') === 0) {
	// CollapseSections. 2020-12-30 disabled. Seems to be buggy at times, and I don't think I will miss the functionality.
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/CollapseSections.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/CollapseSections.js]]
	// coordInserter
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Jeeputer/coordInserter.js&action=raw&ctype=text/javascript'); // [[User:Jeeputer/coordInserter.js]]
	// De-Stub
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/De-Stub.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/De-Stub.js]]
	// diffedit
	mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Jon_Harald_Søby/diffedit.js&action=raw&ctype=text/javascript'); // [[m:User:Jon Harald Søby/diffedit.js]]
	// domainRedirect
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Opencooper/domainRedirect.js&action=raw&ctype=text/javascript'); // [[User:Opencooper/domainRedirect.js]]
	// DuplicatedRefs
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Chlod/Scripts/DuplicatedRefs.js&action=raw&ctype=text/javascript'); // [[User:Chlod/Scripts/DuplicatedRefs.js]]
	// FindSources
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/FindSources.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/FindSources.js]]
	// infoboxgap
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Frietjes/infoboxgap.js&action=raw&ctype=text/javascript'); // [[User:Frietjes/infoboxgap.js]]
	// lastEdit
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Opencooper/lastEdit.js&action=raw&ctype=text/javascript'); // [[User:Opencooper/lastEdit.js]]
	// [[User:Ohconfucius/script/MOSNUM dates]]
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates.js&action=raw&ctype=text/javascript'); // [[User:Ohconfucius/script/MOSNUM dates.js]]
	// [[User:Ohconfucius/script/Sources]]
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ohconfucius/script/Sources.js&action=raw&ctype=text/javascript'); // [[User:Ohconfucius/script/Sources.js]]
	// OrphanStatus
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Technical_13/Scripts/OrphanStatus.js&action=raw&ctype=text/javascript'); // [[User:Technical 13/Scripts/OrphanStatus.js]]
	// Red files
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/Red_files.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/Red files.js]]
	// RefCruncher
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Guywan/Scripts/RefCruncher.js&action=raw&ctype=text/javascript'); // [[User:Guywan/Scripts/RefCruncher.js]]
	// ReviewStatus
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Novem_Linguae/Scripts/ReviewStatus.js&action=raw&ctype=text/javascript'); // [[User:Novem Linguae/Scripts/ReviewStatus.js]]
	// SATG [[User:DannyS712/SATG]]
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/SATG.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/SATG.js]]
	// SATG CORP
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Red-tailed_hawk/SATG_CORP.js&action=raw&ctype=text/javascript'); // [[User:Red-tailed hawk/SATG CORP.js]]
	// StubSorter
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:SD0001/StubSorter.js&action=raw&ctype=text/javascript'); // [[User:SD0001/StubSorter.js]]
	// undo-last-edit
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Enterprisey/undo-last-edit.js&action=raw&ctype=text/javascript'); // [[User:Enterprisey/undo-last-edit.js]]
	// Unpipe
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Nardog/Unpipe.js&action=raw&ctype=text/javascript'); // [[User:Nardog/Unpipe.js]]
	// Wordcount
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Caorongjin/wordcount.js&action=raw&ctype=text/javascript'); // [[User:Caorongjin/wordcount.js]]
// END ARTICLES
} else {
// ANYWHERE BUT ARTICLES
// PROJECT SPACE
if (mw.config.get('wgNamespaceNumber') === 4) {
	if (mw.config.get('wgPageName').indexOf('Wikipedia:Articles_for_deletion/') >= 0) {
		// delsort by User:Enterprisey
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Enterprisey/delsort.js&action=raw&ctype=text/javascript'); // [[User:Enterprisey/delsort.js]]
		// oldafd
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Amorymeltzer/oldafd.js&action=raw&ctype=text/javascript'); // [[User:Amorymeltzer/oldafd.js]]
	}
	// AFC/R + AFC/C
	if ((mw.config.get('wgPageName') === 'Wikipedia:Articles_for_creation/Redirects') || (mw.config.get('wgPageName') === 'Wikipedia:Articles_for_creation/Categories')) {
		// afcrc-helper
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Eejit43/scripts/afcrc-helper.js&action=raw&ctype=text/javascript'); // [[User:Eejit43/scripts/afcrc-helper.js]]
	}
	// JavaScript Wiki Browser (JWB)
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript'); // [[User:Joeytje50/JWB.js/load.js]]
	// RM/TR
	if (mw.config.get('wgPageName') == 'Wikipedia:Requested_moves/Technical_requests') {
		// rmtr-helper
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Eejit43/scripts/rmtr-helper.js&action=raw&ctype=text/javascript'); // [[User:Eejit43/scripts/rmtr-helper.js]]
	}
	// SPI
	if (mw.config.get('wgPageName').indexOf('Wikipedia:Sockpuppet_investigations/') >= 0) {
		// cuStaleness
		lazyCheckCUStaleness = false;
		lazyCheckCatStaleness = false;
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/cuStaleness.js&action=raw&ctype=text/javascript'); // [[User:Writ Keeper/Scripts/cuStaleness.js]]
		// mark-join-date
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Enterprisey/mark-join-date.js&action=raw&ctype=text/javascript'); // [[User:Enterprisey/mark-join-date.js]]
	}
// END PROJECT SPACE
// USER SPACE AND USER TALK SPACE
} else if ((mw.config.get('wgNamespaceNumber') === 2) || (mw.config.get('wgNamespaceNumber') === 3)) {
	// ARB, the Arbritration Requests Buddy [[User:Bellezzasolo/Scripts/arb]]
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Bellezzasolo/Scripts/arb.js&action=raw&ctype=text/javascript'); // [[User:Bellezzasolo/Scripts/arb.js]]
	// CVD (Copy-Violation Detector) [[User:Ahecht/Scripts/CVD]]
	//var dupdet = true;
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ahecht/Scripts/CVD.js&action=raw&ctype=text/javascript'); // [[User:Ahecht/Scripts/CVD.js]]
	// Draftify [[WP:DFY]]
	Draftify = {};
	Draftify.menulocation = "p-cactions";
	Draftify.menuposition = "#ca-watch";
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Mr._Stradivarius/gadgets/Draftify.js&action=raw&ctype=text/javascript'); // [[User:Mr. Stradivarius/gadgets/Draftify.js]]
	// edits-since-decline [[User:SD0001/edits-since-decline]]
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:SD0001/edits-since-decline.js&action=raw&ctype=text/javascript'); // [[User:SD0001/edits-since-decline.js]]
	// GlobalUserToolbox [[User:Chlod/Scripts/GlobalUserToolbox]]
	var gutOptions = {
		"insert_at_top": false,
		"ignore_existing": false,
		"start_collapsed": false
	};
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Chlod/Scripts/GlobalUserToolbox.js&action=raw&ctype=text/javascript'); // [[User:Chlod/Scripts/GlobalUserToolbox.js]]
	// Help Me Tool
	// mw.loader.load('//en.wikipedia.org/w/index.php?title=User:TheTechie/Help_Me_Tool.js&action=raw&ctype=text/javascript'); // [[User:TheTechie/Help Me Tool.js]]
	// (Search own) Userspace
	// mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/Userspace.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/Userspace.js]]
	// editCounter
	//if (mw.config.get('wgTitle') === mw.config.get('wgUserName')) {
	//	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Jeeputer/editCounter.js&action=raw&ctype=text/javascript'); // [[User:Jeeputer/editCounter.js]]
	//}
// END USER SPACE AND USER TALK SPACE
// CATEGORIES
} else if (mw.config.get('wgNamespaceNumber') === 14) {
	// categorypagelinks [[User:Alex 21/script-categorypagelinks]]
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Alex_21/script-categorypagelinks.js&action=raw&ctype=text/javascript'); // [[User:Alex 21/script-categorypagelinks.js]]
	// CatListMainTalkLinks [[User:Equazcion/CatListMainTalkLinks]]
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Equazcion/CatListMainTalkLinks.js&action=raw&ctype=text/javascript'); // [[User:Equazcion/CatListMainTalkLinks.js]]
	// previewUserboxes
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:MusikAnimal/previewUserboxes.js&action=raw&ctype=text/javascript'); // [[User:MusikAnimal/previewUserboxes.js]]
	// sockStaleness
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/sockStaleness.js&action=raw&ctype=text/javascript'); // [[User:Writ Keeper/Scripts/sockStaleness.js]]
// END CATEGORIES
// FILES
} else if (mw.config.get('wgNamespaceNumber') === 6) {
	// LuckyRename
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Alexis_Jazz/LuckyRename.js&action=raw&ctype=text/javascript'); // [[User:Alexis Jazz/LuckyRename.js]]
	// TinEye
	mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/TinEye.js&action=raw&ctype=text/javascript'); //[[meta:User:Krinkle/Scripts/TinEye]]
// END FILES
// TEMPLATES
} else if ((mw.config.get('wgNamespaceNumber') === 10) || (mw.config.get('wgNamespaceNumber') === 11)) {
	// WatchDoc
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/WatchDoc.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/WatchDoc.js]]
// END TEMPLATES
} // END else if loop but remain in non-articles
// WP + TALK SPACES
if ((mw.config.get('wgNamespaceNumber') === 4) || (mw.config.get('wgNamespaceNumber')%2 === 1)) {
	// COI Request Tool
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Terasail/COI_Request_Tool.js&action=raw&ctype=text/javascript'); // [[User:Terasail/COI Request Tool.js]]
	// collapseBots
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Opencooper/collapseBots.js&action=raw&ctype=text/javascript'); // [[User:Opencooper/collapseBots.js]]
	// Edit Request Tool
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Terasail/Edit_Request_Tool.js&action=raw&ctype=text/javascript'); // [[User:Terasail/Edit Request Tool.js]]
	// editProtectedHelper, 2024-10-10: disabled, trying out Terasail/Edit Request Tool.js instead
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Jackmcbarn/editProtectedHelper.js&action=raw&ctype=text/javascript'); // [[User:Jackmcbarn/editProtectedHelper.js]]
	// Move+
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BilledMammal/MovePlus.js&action=raw&ctype=text/javascript'); // [[User:BilledMammal/MovePlus.js]]
	// TimestampDiffs
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Evad37/TimestampDiffs.js&action=raw&ctype=text/javascript'); // [[User:Evad37/TimestampDiffs.js]]
	// unsignedhelper
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Anomie/unsignedhelper.js&action=raw&ctype=text/javascript'); // [[User:Anomie/unsignedhelper.js]]
	} // END WP + TALK SPACES
} // END ANYWHERE BUT ARTICLES
} // END ENTIRE NOT SPECIAL LOOP
// MIXED
// CONTRIBS, HISTORY, RECENT CHANGES, WATCHLIST
if (mw.config.get('wgAction') === 'history' || mw.config.get('wgCanonicalSpecialPageName') === 'Contributions' || mw.config.get('wgCanonicalSpecialPageName') === 'Watchlist' || mw.config.get('wgCanonicalSpecialPageName') === 'Recentchanges') {
	// Citation Watchlist
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Harej/citation-watchlist.js&action=raw&ctype=text/javascript'); // [[User:Harej/citation-watchlist.js]]
	// commonHistory
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/commonHistory.js&action=raw&ctype=text/javascript'); // [[User:Writ Keeper/Scripts/commonHistory.js]]
	// ExpandDiffs, works fine globally
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Bradv/Scripts/ExpandDiffs.js&action=raw&ctype=text/javascript'); // [[User:Bradv/Scripts/ExpandDiffs.js]]
} // END CONTRIBS, HISTORY, RECENT CHANGES, WATCHLIST
// CONTRIBS, HISTORY
if (mw.config.get('wgAction') === 'history' || mw.config.get('wgCanonicalSpecialPageName') === 'Contributions') {
	// AbuseFilterContribs
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ingenuity/AbuseFilterContribs.js&action=raw&ctype=text/javascript'); // [[User:Ingenuity/AbuseFilterContribs.js]]
	// BlockedUserHistory ([[Special:Permalink/1256617564#Show only blocked users]])
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Novem_Linguae/Scripts/BlockedUserHistory.js&action=raw&ctype=text/javascript'); // [[User:Novem Linguae/Scripts/BlockedUserHistory.js]]
	// diff-link
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Rublov/diff-link.js&action=raw&ctype=text/javascript'); // [[User:Rublov/diff-link.js]]
	// DynaThank
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Equazcion/DynaThank.js&action=raw&ctype=text/javascript'); // [[User:Equazcion/DynaThank.js]]
	// highlight my username in history
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Gary/highlight_my_username_in_history.js&action=raw&ctype=text/javascript'); // [[User:Gary/highlight my username in history.js]]
	// historydiffselect
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Frietjes/historydiffselect.js&action=raw&ctype=text/javascript'); // [[User:Frietjes/historydiffselect.js]]
	// HistoryView
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Yair_rand/HistoryView.js&action=raw&ctype=text/javascript'); // [[User:Yair rand/HistoryView.js]]
	// minutes later for diff
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Gary/minutes_later_for_diff.js&action=raw&ctype=text/javascript'); // [[User:Gary/minutes later for diff.js]]
	// MoveHistory
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Nardog/MoveHistory.js&action=raw&ctype=text/javascript'); // [[User:Nardog/MoveHistory.js]]
	// responsiveHistoryCompare
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Fred_Gandt/responsiveHistoryCompare.js&action=raw&ctype=text/javascript'); // [[User:Fred Gandt/responsiveHistoryCompare.js]]
	// userhist
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ale_jrb/Scripts/userhist.js&action=raw&ctype=text/javascript'); // [[User:Ale jrb/Scripts/userhist.js]]
} // END CONTRIBS, HISTORY
// DIFF ONLY, add diffOnly links everywhere but diff pages
if (mw.config.get('wgCanonicalSpecialPageName') != 'Contributions') {
	/*
	DiffOnly = {
		history: true,
		recentchanges: true,
		watchlist: true,
		diff: false
	};
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Amorymeltzer/DiffOnly.js&action=raw&ctype=text/javascript'); // [[User:Amorymeltzer/DiffOnly.js]]
	*/
} // END DIFF ONLY
// ID RELATED
if (mw.config.exists('wgRelevantUserName')) {
	// IPLabeller
	//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Cumbril/IPLabeller.js&action=raw&ctype=text/javascript'); // [[User:Cumbril/IPLabeller.js]]
	// statusCheck
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ale_jrb/Scripts/statusCheck.js&action=raw&ctype=text/javascript'); // [[User:Ale_jrb/Scripts/statusCheck.js]]
} // END ID RELATED