User:Sam Sailor/vector.js

Source: 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 ---
//	SPECIAL PAGES
//		CONTRIBUTIONS
//		WATCHLIST
//		WHATLINKSHERE
//		RECENT CHANGES
//		SEARCH
//	NOT SPECIAL
//		(CSD RELATED)
//	ARTICLES AND DRAFTS
//		(CITATIONS/REFERENCES RELATED)
//	ARTICLES AND TALK
//	ARTICLES
//	ANYWHERE BUT ARTICLES
//		(AFC RELATED)
//		PROJECT SPACE
//		USERSPACE
//		CATEGORIES
//		FILES
//		PROJECT SPACE AND ARTICLE TALK
//			(TALK)
//	HISTORY, CONTRIBS, WATCHLIST, RECENT CHANGES
//	HISTORY, CONTRIBS
//		ID RELATED
// --- END TOC ---


// --- EMPTY BOILERPLATE ---
	/**
	 * <title>
	 * <description>
 	 * Linkback: [[User:]]
	 * Documentation: [[]]
	 * Feedback: [[]]
	 * Notes: Added { {subst:CURRENTYEAR}}-{ {subst:CURRENTMONTH}}-{ {subst:CURRENTDAY2}}
	 */
	 //{ {Subst:Js|}}


// SPECIAL PAGES
if (mw.config.get('wgCanonicalNamespace') === 'Special') {
	// CONTRIBUTIONS
	if (mw.config.get('wgCanonicalSpecialPageName') === 'Contributions') {
		/**
		 * ContribSearch
		 * This script is used to viewing edits by a single user. It will update every 3 seconds and insert newer edits.
		 * Documentation: [[User:DannyS712/ContribSearch]] 
		 * Notes: Added 2019-06-30
		 */
		 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ADannyS712%2FContribSearch.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/ContribSearch.js]]
		/**
		 * massRollback
		 * Selecting the "rollback all" tab when viewing a user's contributions history will open all rollback links displayed there. (Use with caution)
		 * Documentation: User talk:Writ Keeper/Scripts/massRollback.js
		 */
		 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AWrit+Keeper%2FScripts%2FmassRollback.js&action=raw&ctype=text/javascript'); // [[User:Writ Keeper/Scripts/massRollback.js]]
		/**
		 * more-block-info
		 * Allows for diffs to be loaded inline on history, contributions, and recent changes pages
		 * Documentation: [[User:Firefly/more-block-info]]
		 * Feedback: [[User talk:Firefly/more-block-info]]
		 * Notes: Added 2024-08-24
		 */
		 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AFirefly%2Fmore-block-info.js&action=raw&ctype=text/javascript'); // [[User:Firefly/more-block-info.js]]
	}
	// END CONTRIBUTIONS
	// WATCHLIST
    } else if (mw.config.get('wgCanonicalSpecialPageName') === 'Watchlist') {
		/**
		 * ajaxWatchlist
		 * Automatically updates your watchlist
		 * Linkback: [[User:Theopolisme/Scripts/ajaxWatchlist.js]]
		 * Documentation: [[User:Theopolisme/Scripts/ajaxWatchlist]]
		 * Notes: 2016-04-18: Does this mess up Pop-ups? Disabling. No, but something is conflicting with Pop-ups on history pages.
		 */
		/**
		 * catwatch
		 * Used to monitor categories for changes
		 * Linkback: [[User:Ais523/catwatch.js]]
		 * Documentation: [[User:Ais523/catwatch]]
		 * Notes:
		 */
		/**
		 * customWatchlists
		 * A script to create and manage your own customized watchlists
		 * Linkback: [[User:MusikAnimal/customWatchlists.js]]
		 * Documentation: [[User:MusikAnimal/customWatchlists]]
		 * Notes: Yet to be tested
		 */
		/**
		 * watchUserContribs
		 * Documentation: none
		 * Feedback: none
		 * Notes: 2018-02-24: works fine
		 */
		 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AFred+Gandt%2FwatchUserContribs.js&action=raw&ctype=text/javascript'); // [[User:Fred Gandt/watchUserContribs.js]]
	// END WATCHLIST
	// WHATLINKSHERE
    } else if (mw.config.get('wgCanonicalSpecialPageName') === 'Whatlinkshere') {
		/**
		* whatLinksHereLinkFilter
		* Adds an additional filter on What Links Here pages
		* Documentation: [[User:V111P/js/What Links Here link filter]]
		* Notes:
		*/
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AV111P%2Fjs%2FwhatLinksHereLinkFilter.js&action=raw&ctype=text/javascript'); // [[User:V111P/js/whatLinksHereLinkFilter.js]]
	// END WHATLINKSHERE
	// RECENT CHANGES
    } else if (mw.config.get('wgCanonicalSpecialPageName') === 'Recentchanges') {
    	// Color top links
    	mw.util.addCSS(".mw-rollback-link { background-color:#FFFF88; }");
	// END RECENT CHANGES
    // SEARCH
    } else if (mw.config.get('wgCanonicalSpecialPageName') === 'Search') {
    	/**
    	 * SearchSuite
		 * List-friendly search results enhancer. On/Off features include sort, single-line results, wikilink formatting, etc.
		 * Documentation: [[User:The Transhumanist/SearchSuite]]
		 * Notes: Installed 2018-05-10
		 */
		 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AThe+Transhumanist%2FSearchSuite.js&action=raw&ctype=text/javascript'); // [[User:The Transhumanist/SearchSuite.js]]
    	 /**
		 * Search sort
		 * Adds several "Sort by" links to search pages.
		 * Documentation: none
		 * Notes: Installed 2019-04-02
		 */
		 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3APrimeHunter%2FSearch+sort.js&action=raw&ctype=text/javascript'); // [[User:PrimeHunter/Search sort.js]]
    // END SEARCH
// END SPECIAL PAGES
} else {
/**
  Load scripts that should not load on a special page
*/
// NOT SPECIAL
	// CSD RELATED
	/**
	 * csdhelper
	 * CSD Helper. Helps with declining/contesting speedy deletions, changing rationales, changing speedy deletions to PRODs, and delete.
	 * Documentation: [[User:Ale jrb/Scripts/csdhelper]]
	 * Feedback: [[User talk:Ale jrb/Scripts/csdhelper.js]]
	 * Notes:
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AAle_jrb%2FScripts%2Fcsdhelper.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
	 * Set of custom decline and delete reasons
	 * Documentation: none
	 * Notes: An "outsourced" place to define variables for the CSD Helper script
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASoWhy%2Fcsdreasons.js&action=raw&ctype=text/javascript'); // [[User:SoWhy/csdreasons.js]]
	// END CSD RELATED
	/**
	 * Capricorn
	 * Documentation: [[User:Wugapodes/Capricorn]]
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AWugapodes%2FCapricorn.js&action=raw&ctype=text/javascript'); // [[User:Wugapodes/Capricorn.js]]
// END NOT SPECIAL
// ARTICLES AND DRAFTS
if (mw.config.get('wgNamespaceNumber') === 0 || mw.config.get('wgNamespaceNumber') === 118) {
	// CITATIONS/REFERENCES RELATED
	/**
	 * autoFormatterSettings
	 * 2018-11-30: Moved to common.js
	 */
	/**
	 * Automatic Referencing Assistant
	 * Aids users in correcting referencing errors
	 * Documentation: [[User:TheJJJunk/Automatic Referencing Assistant]]
	 * Notes: A fine script
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ATheJJJunk%2FARA.js&action=raw&ctype=text/javascript'); // [[User:TheJJJunk/ARA.js]]
	/**
	 * categoriessort
	 * Sorts categories in an article alphabetically
	 * Linkback: [[User:Alex 21/script-categoriessort.js]]
	 * Documentation: [[User:Alex 21/script-categoriessort]]
	 * Feedback: [[User talk:Alex 21/script-categoriessort]]
	 * Notes: 2020-07-09, does not call User:Alex 21/script-functions.js
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AAlex+21%2Fscript-categoriessort.js&action=raw&ctype=text/javascript'); // [[User:Alex 21/script-categoriessort.js]]
 	/**
	 * CiteHighlighter
	 * Highlights 1800 sources green, yellow, or red depending on their reliability
	 * Documentation: [[User:Novem Linguae/Scripts/CiteHighlighter]]
	 * Feedback: [[User talk:Novem Linguae/Scripts/CiteHighlighter]]
	 * Notes: Added 2024-08-24
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ANovem+Linguae%2FScripts%2FCiteHighlighter.js&action=raw&ctype=text/javascript'); // [[User:Novem Linguae/Scripts/CiteHighlighter.js]]
	/**
	 * citetrans
	 * Citation translation
	 * Documentation: none
	 * Notes: 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%3AFrietjes%2Fcitetrans.js&action=raw&ctype=text/javascript'); // [[User:Frietjes/citetrans.js]]
	/**
	 * DuplicateReferences
	 * Detects and displays references with duplicate URLs
	 * Documentation: [[User:Polygnotus/DuplicateReferences]]
	 * Feedback: [[User talk:Polygnotus/DuplicateReferences]]
	 * Notes: Added 2024-08-24
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3APolygnotus%2FDuplicateReferences.js&action=raw&ctype=text/javascript'); // [[User:Polygnotus/DuplicateReferences.js]]
	/**
	 * cv-revdel
	 * Quickly fills out [[Template:Copyvio-revdel]], using the history page's built-in radio buttons.
	 * Documentation: [[User:Enterprisey/cv-revdel]]
	 * Notes: 2018-09: instead of User:Primefac/revdel.js
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AEnterprisey%2Fcv-revdel.js&action=raw&ctype=text/javascript'); // [[User:Enterprisey/cv-revdel.js]]
	/**
	 * HarvErrors
	 * Checks Harvard citation templates for errors
	 * Documentation: [[User:Ucucha/HarvErrors]]
	 * Feedback: [[User talk:Ucucha/HarvErrors]]
	 * Notes: Added 2019-06-30
	 * 2020-12-29: trying alt.: User:trappist the monk/HarvErrors.js
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3Atrappist+the+monk%2FHarvErrors.js&action=raw&ctype=text/javascript'); // [[User:trappist the monk/HarvErrors.js]]
	/**
	 * IABooks 
	 * This script adds buttons next to isbns on wikipedia pages that will redirect the user to a readable digital copy of the referenced book.
	 * Notes: 2019-04-02; disabled 2019-06-16, seldom used
	 */
	 //mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AReinischmax%2FIABooks.js&action=raw&ctype=text/javascript'); // [[User:Reinischmax/IABooks.js]]
	/**
	 * Reference Organizer
	 * Converts all references in an article to list-defined format
	 * Linkback: ([[User:Kaniivel/RefConsolidate.js]])
	 * Linkback: [[User:Kaniivel/RefConsolidate start.js]]
	 * Documentation: [[User:Kaniivel/Reference Organizer]]
	 * Notes: Installed 2017-02-08
	 * 2017-02-17: Works well, the process is easier than with References segregator.
	 */
	 if ( typeof( refConsolidateConfig ) === 'undefined' ) refConsolidateConfig = {};
	 refConsolidateConfig.sort = true;
	 refConsolidateConfig.usetemplateR = false;
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AKaniivel%2FRefConsolidate+start.js&action=raw&ctype=text/javascript');
	/**
	 * refToolbarPlus
	 * Helps adding citation templates to articles
	 * Linkback: [[User:Apoc2400/refToolbarPlus.js]]
	 * Documentation: [[Wikipedia:RefToolbar]]
	 * Notes: Yet to be tested
	 * 2024-08-24: loaded from [[Special:Preferences#mw-prefsection-gadgets]]
	 */
	/**
	 * Tidy citations
	 * Harmonizes the whitespace in citation templates
	 * Documentation: [[User:Sam Sailor/Scripts/Tidy citations]]
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASam+Sailor%2FScripts%2FTidy+citations.js&action=raw&ctype=text/javascript'); // [[User:Sam Sailor/Scripts/Tidy citations.js]]
 	/**
	 * TitleCaseConverter
	 * Converts all reference titles to title case
	 * Documentation: [[User:ZKang123/TitleCaseConverter]]
	 * Feedback: 
	 * Notes: Added 2024-08-24
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AZKang123%2FTitleCaseConverter.js&action=raw&ctype=text/javascript'); // [[User:ZKang123/TitleCaseConverter.js]]
	// END CITATIONS/REFERENCES RELATED
	/**
	 * Advisor
	 * Identifies common formatting and stylistic issues by examining the wikitext.
	 * Documentation: [[User:Ebrahames/Advisor]]
	 * Notes:
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AEbrahames%2FAdvisor.js&action=raw&ctype=text/javascript'); // [[User:Ebrahames/Advisor.js]]
	/**
	 * CVD (Copy-Violation Detector)
	 * Script based on User:Technical_13/Scripts/CVD.js, with some bugfixes and performance optimizations.
	 * Will introduce a new link in the sidebar that reads "Copyvios" that will open a new tab with the report from Earwig's Copyvio Detector.
	 * Documentation: [[User:Ahecht/Scripts/CVD]]
	 * Notes: 2018-06-14
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AAhecht%2FScripts%2FCVD.js&action=raw&ctype=text/javascript'); // [[User:Ahecht/Scripts/CVD.js]]
	/**
	 * deorphanizer
	 * Removes the orphan template from an article, nothing more.
	 * Documentation: none
	 * Notes: Added 2018-11-10; 2019-04-17: disabled, seldom used
	 */
	 //mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AWrit+Keeper%2FScripts%2Fdeorphanizer.js&action=raw&ctype=text/javascript'); // [[User:Writ Keeper/Scripts/deorphanizer.js]]
	/**
	 * duplinks by Aaron Liu, fork of [[User:Evad37/duplinks-alt]]
	 * Highlights links that occur more than once in an article.
 	 * Documentation: None
	 * Feedback: 
	 * Notes: Added 2024-08-24, runs under vector legacy, but does not report duping links. Switching to User:Evad37/duplinks-alt.js
	 */
	 //mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AAaron+Liu%2Fduplinks.js&action=raw&ctype=text/javascript'); // [[User:Aaron Liu/duplinks.js]]
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AEvad37%2Fduplinks-alt.js&action=raw&ctype=text/javascript'); // [[User:Evad37/duplinks-alt.js]]
	/**
	 * EditWarChecker
	 * Checks the recent history (last 24 hours) of articles for possible edit wars.
	 * Documentation: [[User:Evad37/EditWarChecker]]
	 * Feedback: [[User talk:Evad37/EditWarChecker]]
	 * Notes: 2020-12-29
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AEvad37%2FEditWarChecker.js&action=raw&ctype=text/javascript'); // [[User:Evad37/EditWarChecker.js]]
	/**
	 * findargdups
	 * Assists editors with finding the duplicate arguments within a particular page.
	 * CAT:DUPARG Category:Pages using duplicate arguments in template calls
	 * Documentation: [[User:Frietjes/findargdups]]
	 * Notes: Select the "Find dups" link in the Tools section on the left side of the page
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AFrietjes%2Ffindargdups.js&action=raw&ctype=text/javascript'); // [[User:Frietjes/findargdups.js]]
    /**
	 * previewCategoryDupeArgs
	 * Semi automated duplicate arguments hunting tool - specifically for use working on Category:Pages using duplicate arguments in template calls
	 * Documentation: none
	 * Notes: 
	 * 2018-11-23: Installed
	 * 2018-12-17: Disabled, not quite sure it works. Conflict with something else?
	 */
	 //mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AFred+Gandt%2FpreviewCategoryDupeArgs.js&action=raw&ctype=text/javascript'); // [[User:Fred Gandt/previewCategoryDupeArgs.js]]
	/**
	 * w2wFinder
	 * automatically finds words to watch when editing articles
	 * Documentation: [[User:Danski454/w2wFinder]]
	 * Notes: Added 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%3ADanski454%2Fw2wFinder.js&action=raw&ctype=text/javascript'); // [[User:Danski454/w2wFinder.js]]
	/**
	 * Xunlink
	 * The power of XFDcloser's 'unlink backlinks' function, for any page (including already-deleted pages)
	 * Linkback: [[User:Evad37/Xunlink.js]]
	 * Documentation: [[User:Evad37/Xunlink]]
	 * Feedback: [[User talk:Evad37/Xunlink.js]]
	 * Notes: 2018-01-29; 2018-09-06 uninstalled, hardly ever used it.
	 */
}
// END ARTICLES AND 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%3ASam+Sailor%2FScripts%2Flogger.js&action=raw&ctype=text/javascript'); // [[User:Sam Sailor/logger.js]]
	/**
	 * MoveToDraft
	 * A script to move under-sourced articles to draft space, including cleanup and author notification
	 * Documentation: [[User:MPGuy2824/MoveToDraft]]
	 * Notes: 2017-12-15: added. 2023-06-25: change to User:MPGuy2824/MoveToDraft.js
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AMPGuy2824%2FMoveToDraft.js&action=raw&ctype=text/javascript'); // [[User:MPGuy2824/MoveToDraft.js]]
 	/**
	 * rater by Evad37
	 * Helps fill in assessments and other parameters for WikiProject banners
	 * Documentation: [[User:Evad37/rater]]
	 * Notes: 2018-01-02
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AEvad37%2Frater.js&action=raw&ctype=text/javascript'); // [[User:Evad37/rater.js]]
	/**
	 * Shortdesc helper
	 * Shows the short description if it exists, allows editing of only the short description
	 * Documentation: [[User:Galobtter/Shortdesc helper]]
	 * Feedback: [[User talk:Galobtter/Shortdesc helper]]
	 * Notes: 2018-06-21
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AGalobtter%2FShortdesc+helper.js&action=raw&ctype=text/javascript'); // [[User:Galobtter/Shortdesc helper.js]]
	/**
	 * pageswap
	 * Allows a user to swap the histories of two pages (with reasonable restrictions).
	 * Documentation: [[User:Andy M. Wang/pageswap]], [[User:Ahecht/Scripts/pageswap]]
	 * Notes: 2016-08-25: Works very well
	 * 2019-05-19: Switching to User:Ahecht/Scripts/pageswap.js
	 * 2024-08-24: When and why did I switch back to User:Andy M. Wang/pageswap.js?
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AAndy+M.+Wang%2Fpageswap.js&action=raw&ctype=text/javascript'); // [[User:Andy M. Wang/pageswap.js]]
	 //mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AAhecht%2FScripts%2Fpageswap.js&action=raw&ctype=text/javascript'); // [[User:Ahecht/Scripts/pageswap.js]]
}
// END ARTICLES AND TALK
// ARTICLES
if (mw.config.get('wgNamespaceNumber') == '0') {
	/**
	 * scriptManager
	 * Selectively run scripts on the fly
	 * Documentation: [[User:MusikAnimal/scriptManager]]
	 * Notes:
	 * 2024-01-10: Does not work with Vector-2022.
	 * 2024-08-24: scriptManager.js was updated in April in [[Special:Diff/1216781396]], trying to load it again
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AMusikAnimal%2FscriptManager.js&action=raw&ctype=text/javascript'); // [[User:MusikAnimal/scriptManager.js]]
	 scriptsToManage =
	   {
	   	"Duplinks" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Aaron_Liu/duplinks.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",
	   	"OHC MOSNUM dates" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Ohconfucius/script/MOSNUM_dates.js",
	   	"OHC Sources" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Ohconfucius/script/Sources.js",
	   	"Show nbsp" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Evad37/showhardspaces.js",
	   };
	/**
	 * AutoEd
	 * Helps to automatically make certain changes in articles
	 * [[Wikipedia:AutoEd/complete.js]]
	 * Documentation: [[Wikipedia:AutoEd]]
	 * Notes:
	 */
	 //autoEdClick = false; // Disables the diff page from opening automatically (required for wikEd compatability)
	/**
	 * collapse infoboxes
	 * Taken from [[MediaWiki:Common.js]], modified to collapse based on infobox class, rather than collapsible class.
	 * Linkback: [[User:Frietjes/collapse infoboxes.js]]
	 * Documentation: none
	 * Notes: Yet to be tested
	 */
	/**
	 * CollapseSections
	 * Adds an arrow button beside the header to show/hide the button.
	 * Documentation: [[User:BrandonXLF/CollapseSections]]
	 * Notes: 2020-12-29
	 * 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%3ABrandonXLF%2FCollapseSections.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/CollapseSections.js]]
	/**
	 * displayNumberOfTags
	 * Displays the number of maintenance tags in the article
	 * Linkback: [[User:Ugog Nizdast/displayNumberOfTags.js]]
	 * Documentation: [[User:Ugog Nizdast/displayNumberOfTags]]
	 * Notes: not so useful, as far as I remember
	 */
	/**
	 * De-Stub
	 * Remove stub templates
	 * Documentation: [[User:DannyS712/De-Stub]]
	 * Notes: 2019-04-02
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ADannyS712%2FDe-Stub.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/De-Stub.js]]
	 /**
	 * domainRedirect
	 * Documentation: [[User:Opencooper/domainRedirect]]
	 * Notes: 2019-05-19
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AOpencooper%2FdomainRedirect.js&action=raw&ctype=text/javascript'); // [[User:Opencooper/domainRedirect.js]]
	/**
	 * [[User:Ohconfucius/script/Common Terms]]
	 * Unlinks common terms that usually don't need linking in the majority of articles
	 * Documentation: [[WP:COMMONTERMS]]
	 * Feedback: [[User talk:Ohconfucius/script]]
	 * Notes:
	 * 2015-12-26: Enabling it here, removing from global.js
	 * 2016-04-09: Disabling
	 * 2016-08-18: Loaded via scriptManager.js
	 * 2024-01-10: Previously loaded in vector.js (legacy) via [[User:MusikAnimal/scriptManager.js]], but that does not work in vector-2022.js.
	 * 2024-08-24: scriptManager.js was updated in April in [[Special:Diff/1216781396]] so loading Common Terms again via scriptManager
	 */
	 //mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AOhconfucius%2Fscript%2FCommon+Terms.js&action=raw&ctype=text/javascript'); // [[User:Ohconfucius/script/Common Terms.js]]
	/**
	 * [[User:Ohconfucius/dashes]]
	 * Fixes dashes in accordance with WP:MOSDASH (fork of User:GregU/dashes.js)
	 * Feedback: [[User talk:Ohconfucius/script]]
	 * Notes:
	 * 2024-01-10: Previously loaded in vector.js (legacy) via [[User:MusikAnimal/scriptManager.js]], but that does not work in vector-2022.js.
	 * 2024-08-24: scriptManager.js was updated in April in [[Special:Diff/1216781396]] so loading dashes again via scriptManager.
	 */
	 //mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AOhconfucius%2Fdashes.js&action=raw&ctype=text/javascript'); // [[User:Ohconfucius/dashes.js]]
	/**
	 * [[User:Ohconfucius/script/MOSNUM dates]]
	 * Aligns dates to a single format throughout the article
	 * Feedback: [[User talk:Ohconfucius/script]]
	 * Notes:
	 * 2024-01-10: Previously loaded in vector (legacy) via [[User:MusikAnimal/scriptManager.js]], but that does not work in vector-2022.
	 * 2024-08-24: scriptManager.js was updated in April in [[Special:Diff/1216781396]] so loading MOSNUM dates again via scriptManager.
	 */
	 //mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AOhconfucius%2Fscript%2FMOSNUM+dates.js&action=raw&ctype=text/javascript'); // [[User:Ohconfucius/script/MOSNUM dates.js]]
	/**
	 * [[User:Ohconfucius/script/Sources]]
	 * Fixes specific formatting of various parameters within <ref></ref> and within {{citation}} templates
	 * Feedback: [[User talk:Ohconfucius/script]]
	 * Notes:
	 * 2024-01-10: Previously loaded in vector (legacy) via [[User:MusikAnimal/scriptManager.js]], but that does not work in vector-2022.
	 * 2024-08-24: scriptManager.js was updated in April in [[Special:Diff/1216781396]] so loading Sources again via scriptManager.
	 */
	 //mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AOhconfucius%2Fscript%2FSources.js&action=raw&ctype=text/javascript'); // [[User:Ohconfucius/script/Sources.js]]
	/**
	 * OrphanStatus
	 * Documentation: [[User:Technical 13/Scripts/OrphanStatus]]
	 * Notes: 2018-12-03
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ATechnical+13%2FScripts%2FOrphanStatus.js&action=raw&ctype=text/javascript'); // [[User:Technical 13/Scripts/OrphanStatus.js]]
	/**
	 * searchBox
	 * A search and replace box above the editbox
	 * Linkback: [[User:Zocky/searchBox.js]]
	 * Documentation: [[User:Zocky/Search Box]]
	 * Notes: Added 2016-08-17
	 * Appears in the advanced toolbar.
	 */
	/**
	 * StubSorter
	 * Documentation: [[User:SD0001/StubSorter]]
	 * Notes: 
	 * 2019-07-04: Added
	 * 2020-12-22: Enabled instead of Danski454/stubsearch
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASD0001%2FStubSorter.js&action=raw&ctype=text/javascript'); // [[User:SD0001/StubSorter.js]]
	/**
	 * undo-last-edit
	 * Documentation: [[User:Enterprisey/undo-last-edit.js]]
	 * Notes: 2018-12-03
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AEnterprisey%2Fundo-last-edit.js&action=raw&ctype=text/javascript'); // [[User:Enterprisey/undo-last-edit.js]]
	/**
	 * Wordcount
	 * Based on User:Dr pda/prosesize, which limits its calculation to the readable prose and does not include lists such as references. 
	 * Documentation: [[User:Caorongjin/wordcount]]
	 * Feedback: [[User talk:Caorongjin/wordcount.js]]
	 * Notes: 2018-09-11
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ACaorongjin%2Fwordcount.js&action=raw&ctype=text/javascript'); // [[User:Caorongjin/wordcount.js]]
// END ARTICLES
} else {
// ANYWHERE BUT ARTICLES
// AFC RELATED
	/**
	 * draft-sorter
	 * A userscript to sort AfC drafts by adding WikiProject banners to their talk pages
	 * Documentation: [[User:Enterprisey/draft-sorter]]
	 * Notes:
	 */
	 if ( mw.config.get( 'wgNamespaceNumber' ) === 118 ) {
	 	mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AEnterprisey%2Fdraft-sorter.js&action=raw&ctype=text/javascript'); // [[User:Enterprisey/draft-sorter.js]]
	 	}
	/**
	 * DraftDiff
	 * Displays the diff between a draft's last AfC submission and the current revision.
	 * Notes: Installed 2018-12-03
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AFirefly%2Fdraftdiff.js&action=raw&ctype=text/javascript'); // [[User:Firefly/draftdiff.js]]
	/**
	 * AFCRHS by User:Enterprisey
	 * Helper script for [[Wikipedia:Articles for creation/Redirects and categories]]
	 * [[User:Enterprisey/AFCRHS.js]]
	 * Documentation: [[User:Enterprisey/AFCRHS]]
	 * Notes:
	 * 2016-06-23: Newly created and handles category requests
	 */
	 ( function ( mw, importAFCScript ) {
	 	if ( /^(?:Draft:|Wikipedia(?:_talk)?:Articles_for_creation)/.test( mw.config.get( 'wgPageName' ) ) ) {
	 		if ( mw.config.get( 'wgTitle' ) == 'Articles for creation/Redirects and categories' ) {
	 			mw.loader.using( ['mediawiki.api', 'mediawiki.util', 'mediawiki.user', 'jquery.chosen'] ).done( function() {
	 				importAFCScript( 'User:Enterprisey/AFCRHS.js' );
	 			});
	 		} else {
	/**
	 * AFCH - Articles for Creation Helper
	 * Helper script for [[Wikipedia:Articles for creation]]
	 * Documentation: [[WP:AFCH]]
	 * Notes: The current stable version can also be installed by enabling {{myprefs|9|Editing|check=Yet Another AFC Helper Script}}
	 * 2016-06-23: Currently maintained by User:Enterprisey, this script is much more up to date than the beta version.
	 */
	 if ($.inArray(cfg.wgCanonicalNamespace, ['Project', 'Project_talk', 'Draft']) >= 0) {
			mw.loader.load('ext.gadget.afchelper'); // [[MediaWiki:Gadget-afchelper.js]]
		}
	}
    }
}( mediaWiki, importScript ) );
	/**
	 * Draft no cat
	 * Convert the categories that drafts are in to links to those categories.
	 * Documentation: [[User:DannyS712/Draft no cat]]
	 * Notes: 2019-04-02
	 */
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ADannyS712%2FDraft+no+cat.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/Draft no cat.js]]
	/**
	 * Draft re cat
	 * Companion script to the above Draft no cat.js: Revert the conversion of categorization to links on drafts
	 * Documentation: [[User:DannyS712/Draft re cat]]
	 * Notes: 2019-06-30
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ADannyS712%2FDraft+re+cat.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/Draft re cat.js]]
	/**
	 * DraftCleaner
	 * Fix formatting of new articles.
	 * Documentation: -
	 * Feedback: -
	 * Notes: Added 2024-08-24
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ANovem+Linguae%2FScripts%2FDraftCleaner.js&action=raw&ctype=text/javascript'); // [[User:Novem Linguae/Scripts/DraftCleaner.js]]
	/**
	 * easy-AfC-Redirect-and-Category-Response
	 * Respond to and close category and redirect requests - for use at Wikipedia:Articles for creation/Redirects. Does not create cats or redirects.
	 * Documentation: none
	 * Notes: 2018-11-23
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AFred+Gandt%2Feasy-AfC-Redirect-and-Category-Response.js&action=raw&ctype=text/javascript'); // [[User:Fred Gandt/easy-AfC-Redirect-and-Category-Response.js]]
// PROJECT SPACE
if (mw.config.get('wgNamespaceNumber') == '4') {
	lazyCheckCUStaleness = false;
	lazyCheckCatStaleness = false;
	/**
	 * cuStaleness
	 * Relevant talk post: [[Wikipedia talk:Sockpuppet investigations/Archives/Archive21#New script announcement]]
	 * Notes: 2018-11-10
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AWrit+Keeper%2FScripts%2FcuStaleness.js&action=raw&ctype=text/javascript'); // [[User:Writ Keeper/Scripts/cuStaleness.js]]
	 /**
	 * mark-join-date
	 * Shows the registration date of users on SPI pages.
	 * Documentation: [[User:Enterprisey/mark-join-date]]
	 * Notes: Added 2019-04-07
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AEnterprisey%2Fmark-join-date.js&action=raw&ctype=text/javascript'); // [[User:Enterprisey/mark-join-date.js]]
	/**
	 * oldafd
	 * AFD age detector
	 * At "X for deletion" / "X for discussion" will create a line saying "Page created: Xdays Xhrs XXmins XXsecs ago by <user name>." When 168 hours (7 full days) have passed, it will turn the body background fuchsia'ish in colour.
	 * Linkback: [[User:Splarka/oldafd.js]]
	 * Documentation: none
	 * Notes: Not updated since 2009.
	 * 2016: Tested, works. Works as intended where subpages are used, such as at AFD and, if you load the subpage, also at MFD. No benefit where we use sections: CFD, FFD, RFD, and TFD.
	 * Disabling, not really needed.
	 * 2018-01: Tested again. The CSS change, the background colour turning fuchsia, does not seem to work anymore.
	 * 2018-07-05: Testing [[User:Amorymeltzer/oldafd.js]] a mod created 2018-04
	 * 2018-09: This works fine
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AAmorymeltzer%2Foldafd.js&action=raw&ctype=text/javascript'); // [[User:Amorymeltzer/oldafd.js]]
	/**
	 * delsort by User:Enterprisey
	 * Performs deletion sorting
	 * Documentation: [[User:Enterprisey/delsort]]
	 * Notes: Supports WP:AFCD since May 2016.
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AEnterprisey%2Fdelsort.js&action=raw&ctype=text/javascript'); // [[User:Enterprisey/delsort.js]]
	/**
	 * Evad37/XFDcloser
	 * A single script for closing discussions at multiple XfD venues, including AFD discussions as a replacement for User:Mr.Z-man/closeAFD2.js
	 * Documentation: [[User:Evad37/XFDcloser]] / [[User talk:Evad37/XFDcloser.js]]
	 * Notes:
	 * 2017-02-08: Script in development since January 18th.
	 * 2018-01: Seems to be the best developed script or package of scripts for the time being.
	 * 2020-02-05: Now loaded as a gadget from https://en.wikipedia.org/wiki/Special:Preferences#mw-prefsection-gadgets
	 */
// END PROJECT SPACE
// USERSPACE
} else if ((mw.config.get('wgNamespaceNumber') == '2') || (mw.config.get('wgNamespaceNumber') == '3')) {
	/**
	 * ARB, the Arbritration Requests Buddy
	 * Designed to automate the ARBCOM Discretionary Sanctions procedure, as well as supporting General Sanctions
	 * Documentation: [[User:Bellezzasolo/Scripts/arb]]
	 * Notes: Installed 2018-12-03. Disabled 2024-01-10, seldom used.
	 */
	 //mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ABellezzasolo%2FScripts%2Farb.js&action=raw&ctype=text/javascript'); // [[User:Bellezzasolo/Scripts/arb.js]]
	/**
	 * CVD (Copy-Violation Detector)
	 * Script based on User:Technical_13/Scripts/CVD.js, with some bugfixes and performance optimizations.
	 * Will introduce a new link in the sidebar that reads "Copyvios" that will open a new tab with the report from Earwig's Copyvio Detector.
	 * Documentation: [[User:Ahecht/Scripts/CVD]]
	 * Notes: 2018-06-14
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AAhecht%2FScripts%2FCVD.js&action=raw&ctype=text/javascript'); // [[User:Ahecht/Scripts/CVD.js]]
	/**
	 * Draftify
	 * Moves userspace drafts to the draft namespace etc.
	 * Documentation: [[WP:DFY]]
	 * Notes: Indispensable when working in AFC
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AMr.+Stradivarius%2Fgadgets%2FDraftify.js&action=raw&ctype=text/javascript'); // [[User:Mr. Stradivarius/gadgets/Draftify.js]]
 	/**
	 * Help Me Tool
	 * A quick and easy way of responding to {{help me}} requests.
	 * Documentation: [[User:TheTechie/Help Me Tool]]
	 * Feedback: -
	 * Notes: Added {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ATheTechie%2FHelp+Me+Tool.js&action=raw&ctype=text/javascript'); // [[User:TheTechie/Help Me Tool.js]]
	/**
	 * Userspace
	 * A script for opening a subpage in userspace without typing the whole thing in the search box
	 * Documentation: [[User:DannyS712/Userspace]]
	 * Notes: 2019-04-02. Later disabled, seldom used.
	 */
	 //mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ADannyS712%2FUserspace.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/Userspace.js]]
// END USERSPACE
// CATEGORIES
} else if (mw.config.get('wgNamespaceNumber') == '14') {
	/**
	 * CatListMainTalkLinks
	 * Display main/talk links for pages in categories
	 * Documentation: [[User:Equazcion/CatListMainTalkLinks]]
	 * Notes: 
	 */
    mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AEquazcion%2FCatListMainTalkLinks.js&action=raw&ctype=text/javascript'); // [[User:Equazcion/CatListMainTalkLinks.js]]
    /**
	 * previewUserboxes
	 * Works on Cat:Userboxes
	 * Documentation: none
	 * Notes: No need to load this unless it's really needed. But works well, if one is looking for a userbox.
	 */
	 //mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AMusikAnimal%2FpreviewUserboxes.js&action=raw&ctype=text/javascript'); // [[User:MusikAnimal/previewUserboxes.js]]
	/**
	 * sockStaleness
	 * Relevant talk post: [[User talk:Writ Keeper/Archives/15#SPI script]]
	 * Notes: 2024-08-24
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AWrit+Keeper%2FScripts%2FsockStaleness.js&action=raw&ctype=text/javascript'); // [[User:Writ Keeper/Scripts/sockStaleness.js]]
// END CATEGORIES
// FILES
} else if (mw.config.get('wgNamespaceNumber') == '6') {
	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]], [[File:Krinkle_TinEye.js]]
// END FILES
} // END else if loop but remain in non-articles
// PROJECT SPACE AND ARTICLE TALK
if ((mw.config.get('wgNamespaceNumber') == '4') || (mw.config.get('wgNamespaceNumber')%2 == '1')) {
	/**
	 * OneClickArchiver by User:Evad37
	 * updated version of Technical 13's script to account for MedaiWiki changes
	 * Documentation: [[User:Evad37/OneClickArchiver]]
	 * Notes: 2018-02-26: There are a few cases such as archiving own talk page where I miss this.
	 * 2018-12-03: moved to common.js
	 */
	// TALK
	/**
	 * Move+
	 * Assists with all activities related to moves
	 * Documentation: [[User:BilledMammal/Move+]]
	 * Feedback: User talk:BilledMammal/Move+
	 * Notes: Added 2024-08-24
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ABilledMammal%2FMovePlus.js&action=raw&ctype=text/javascript'); // [[User:BilledMammal/MovePlus.js]]
	/**
	 * collapseBots
	 * Declutters talk pages by collapsing comments made by bots
	 * Documentation: [[User:Opencooper/collapseBots]]
	 * Notes: 2021-01-15
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AOpencooper%2FcollapseBots.js&action=raw&ctype=text/javascript'); // [[User:Opencooper/collapseBots.js]]
	/**
	 * editProtectedHelper
	 * Adds the ability to respond to edit requests quickly
	 * Documentation: [[WP:EPH]]
	 * Notes: Handles plain EReq and 30/50 EReq, but not COIREQs.
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AJackmcbarn%2FeditProtectedHelper.js&action=raw&ctype=text/javascript'); // [[User:Jackmcbarn/editProtectedHelper.js]]
	} // END PROJECT SPACE AND ARTICLE TALK
} // END ANYWHERE BUT ARTICLES
} // END ENTIRE LOOP (not special, etc.)

// MIXED
// HISTORY, CONTRIBS, WATCHLIST, RECENT CHANGES
if (mw.config.get('wgAction') === 'history' || mw.config.get('wgCanonicalSpecialPageName') === 'Contributions' || mw.config.get('wgCanonicalSpecialPageName') === 'Watchlist' || mw.config.get('wgCanonicalSpecialPageName') === 'Recentchanges') {
	/**
	 * commonHistory
	 * On the watchlist, adds a link to a user's contribs next to the link to their user or user talk page
	 * Notes:
	 * According to [[User:Writ Keeper/Scripts/inlineDiffDocs]] commonHistory.js script is a consolidated version of
	 * User:Writ Keeper/Scripts/watchlistDiffs.js
	 * User:Writ Keeper/Scripts/generalHistory.js
	 * User:Writ Keeper/Scripts/contribsHistory.js
	 * but NOT User:Writ Keeper/Scripts/userHistory.js.
	 * These scripts, providing the in-place diff functionality of all these scripts, with the exception of the original UserHistory script.
	 * In short: commonHistory.js supersedes the above three scripts, adding the in-place diff functionality to history, contribs, watchlist,
	 * and recent changes pages. It's recommended to use this script instead of the others, as it's significantly easier to maintain.
	 * More notes:
	 * Very useful script
	 * 2015-12-29: Loaded in Meta:User:Sam Sailor/global.js and works fine on other wikis; disabling here
	 * 2016-04-18: Unloaded in Meta:User:Sam Sailor/global.js, it would appear to conflict with some of the functions in Pop-ups; enabling User:UncleDouggie/smart watchlist.js
	 * 2016-04-19: Enabling again, but only locally.
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AWrit+Keeper%2FScripts%2FcommonHistory.js&action=raw&ctype=text/javascript'); // [[User:Writ Keeper/Scripts/commonHistory.js]]
	/**
	 * ExpandDiffs
	 * Allows for diffs to be loaded inline on history, contributions, and recent changes pages
	 * Documentation: [[User:Bradv/Scripts/ExpandDiffs]]
	 * Notes: 2024-01-10
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ABradv%2FScripts%2FExpandDiffs.js&action=raw&ctype=text/javascript'); // [[User:Bradv/Scripts/ExpandDiffs.js]]
} // END HISTORY, CONTRIBS, WATCHLIST, RECENT CHANGES
// HISTORY, CONTRIBS
if (mw.config.get('wgAction') === 'history' || mw.config.get('wgCanonicalSpecialPageName') === 'Contributions') {
	/**
	 * DynaThank
	 * Hides "thank" links on History pages until you choose to display them.
	 * Linkback: [[User:Equazcion/DynaThank.js]]
	 * Documentation: User:Equazcion/DynaThank
	 * Notes: Disabled, not a big benefit IMHO
	 */
	/**
	 * highlight my username in history
	 * Highlights your username in history pages
	 * Linkback: [[User:Gary/highlight my username in history.js]]
	 * Documentation: none
	 * Notes: Don't know how much of a benefit this is
	 */
	/**
	 * historydiffselect
	 * Adjusts the radio buttons in the history page to select the last viewed revision (instead of the last revision before the current revision)
	 * Linkback: [[User:Frietjes/historydiffselect.js]]
	 * Documentation: none
	 * Notes: Don't know how much of a benefit this is
	 */
	/**
	 * HistoryView
	 * Changes the display of history pages
	 * Documentation: [[User:Yair rand/HistoryView]]
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AYair+rand%2FHistoryView.js&action=raw&ctype=text/javascript'); // [[User:Yair rand/HistoryView.js]]
	/**
	 * minutes later for diff
	 * When viewing an edit diff, shows how many minutes have passed from the old edit and the new one. Only appears if the difference is less than an hour.
	 * Linkback: [[User:Gary/minutes later for diff.js]]
	 * Documentation: none
	 * Notes: I can subtract.
	 */
	/**
	 * MoveHistory
	 * Adds the link "Move history" to the Tools section of the sidebar on page history.
	 * Documentation: [[User:Nardog/MoveHistory]]
	 * Notes: 2021-02-15
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ANardog%2FMoveHistory.js&action=raw&ctype=text/javascript'); // [[User:Nardog/MoveHistory.js]]
	/**
	 * responsiveHistoryCompare
	 * Dynamically moves 'Compare selected revisions' buttons next to the selected revisions on action=history pages.
	 * Documentation: none
	 * Notes: This is useful
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AFred+Gandt%2FresponsiveHistoryCompare.js&action=raw&ctype=text/javascript'); // [[User:Fred Gandt/responsiveHistoryCompare.js]]
	/**
	 * userhist
	 * Adds a box to the page history that allows you to display only edits made by a certain user. Useful if you're reviewing contributions.
	 * Documentation: none
	 * Notes: This is sometimes very useful
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AAle+jrb%2FScripts%2Fuserhist.js&action=raw&ctype=text/javascript'); // [[User:Ale jrb/Scripts/userhist.js]]
} // END HISTORY, CONTRIBS
// DIFF ONLY, add diffOnly links everywhere but diff pages
if (mw.config.get('wgCanonicalSpecialPageName') != 'Contributions') {
DiffOnly = {
    history: true,
    recentchanges: true,
    watchlist: true,
    diff: false
};
	/**
	 * DiffOnly
	 * Adds a "diff only" link next to the "Next edit" and "Previous edit" links on diff pages
	 * Linkback: [[User:Mr. Stradivarius/gadgets/DiffOnly.js]]
	 * Documentation: User:Mr. Stradivarius/gadgets/DiffOnly
	 * Fork: User:Amorymeltzer/DiffOnly.js
	 * Notes: 2017-02-12 unloaded; 2024-08-24 loading fork again
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AAmorymeltzer%2FDiffOnly.js&action=raw&ctype=text/javascript'); // [[User:Amorymeltzer/DiffOnly.js]]
} // END DIFF ONLY
// ID RELATED
if (mw.config.exists('wgRelevantUserName')) {
	/**
	 * IPLabeller
	 * Set labels and/or background colors to anonymous IP address user accounts
	 * Linkback: [[User:Cumbril/IPLabeller.js]]
	 * Documentation: [[User:Cumbril/IPLabeller]]
	 * Notes: 2015-12-12: Disabling. Works fine, but I haven't used it even once. Good for SPI work?
	 */
	/**
	 * statusCheck
	 * Displays whether a user is on- or offline when viewing their user page, user talk page and contributions
	 * Documentation: [[User:Ale jrb/Scripts]]
	 * Notes: 2015-12-29: Removed from global.js it does not work on other wikis than en.wiki. Loading here.
	 */
	 mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AAle_jrb%2FScripts%2FstatusCheck.js&action=raw&ctype=text/javascript'); // [[User:Ale_jrb/Scripts/statusCheck.js]]
} // END ID RELATED