// 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]]
/**
* hidetopcontrib by Ais523
* This script color-codes lines according to who has the top contribution for a page.
* Linkback: [[User:Ais523/hidetopcontrib.js]]
* Documentation: none
*/
/**
* hidetopcontrib by Markhurd
* This script color-codes lines according to who has the top contribution for a page.
* Based on User:Ais523/hidetopcontrib.js
* Linkback: [[User:Markhurd/hidetopcontrib.js]]
* Documentation: [[User:Markhurd/hidetopcontrib]]
*/
/**
* massRollback
* Selecting the "rollback all" tab when viewing a user's contributions history will open all rollback links displayed there. (Use with caution)
* Linkback: [[User:Writ Keeper/Scripts/massRollback.js]]
* Documentation: User talk:Writ Keeper/Scripts/massRollback.js
* Notes:
*/
}
// 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
*/
/**
* interwikiwatchlist
* Linkback: [[User:Yair rand/interwikiwatchlist.js]]
* Documentation: [[User talk:Yair rand/interwikiwatchlist.js]]
* Notes: 2015-12-12: Could not get it to work
*/
/**
* interwikiwatchlist2
* Requires "Group changes by page in recent changes and watchlist" in Special:Preferences#mw-prefsection-rc
* Linkback: [[User:Yair rand/interwikiwatchlist2.js]]
* Documentation: [[User talk:Yair rand/interwikiwatchlist2.js]]
* Notes: 2015-12-12: This one works for me (as opposed to interwikiwatchlist.js tested a few hours back). Great script for cross-wiki watching
* I then discovered https://tools.wmflabs.org/crosswatch/ which in my case will suffice, and I have disabled interwikiwatchlist2.js
*/
/**
* JS UserWatch.js
* Linkback: [[User:JackSchmidt/JS UserWatch.js]]
* Documentation: none
* Feedback: [[User talk:JackSchmidt/JS UserWatch.js]]
* Notes: 2018-02-24: Appears not to work.
*/
/**
* LagToMinutes
* Adds days, hours, minutes, and seconds display to "Database lag" messages that appear from time to time in the watchlist
* Linkback: [[User:Equazcion/LagToMinutes.js]]
* Documentation: [[User:Equazcion/LagToMinutes]]
* Notes:
*/
/**
* ReverseMarked by Amorymeltzer
* Based on [[User:Equazcion/ReverseMarked.js]]
* Hide visited pages on watchlist
* Linkback: [[User:Amorymeltzer/ReverseMarked.js]]
* Documentation: [[User:Equazcion/ReverseMarked]]
* Notes: May 2018: Can't get either of these to work
*/
/**
* smart watchlist
* [[User talk:UncleDouggie/smart watchlist.js]]
* Linkback: [[User:UncleDouggie/smart watchlist.js]]
* Notes:
* 2015-12-12: Versatile script in its own right, but does not work fully when User:Writ Keeper/Scripts/commonHistory.js is loaded
* 2016-04-18: Enabling. I have unloaded User:Writ Keeper/Scripts/commonHistory.js in Meta:User:Sam Sailor/global.js, it would appear to conflict with some of the functions in Pop-ups.
* 2016-04-19: Disabling
*/
/**
* stalkcontribs
* Ajax user contributions stalker
* Linkback: [[User:Splarka/stalkcontribs.js]]
* Notes: 2015-12-06: Does not seem to work at least not with monobook in Chrome.
* 2018-02-24: Tested again with vector, but it still does not work.
*/
/**
* unwatch
* Adds "unw" (unwatch) links to the watchlist
* Linkback: [[User:Anomie/unwatch.js]]
* Notes: Another great little script from Anomie, but does not work with [[Help:Enhanced recent changes]]
* 2015-12-29: Loaded in Meta:User:Sam Sailor/global.js and works fine on other wikis as long on enhanced is not set; disabling here
* 2015-12-30: Does not work with [[Help:Enhanced recent changes]]
*/
/**
* unwatch
* Adds "unwatch" links to each item in your watchlist.
* Linkback: [[User:Ilmari Karonen/unwatch.js]]
* Notes: 2015-12-30: Does not work with [[Help:Enhanced recent changes]]
*/
/**
* userwatchlist
* Linkback: [[User:Tra/userwatchlist.js]]
* Notes: 2015-11-28: since the query.php API was removed in 2008, this script no longer functions.
*/
/**
* User:Js/watchlist.js
* Linkback: [[User:Js/watchlist.js]]
* Documentation: [[User:Js/watchlist]]
* Begun: 2008
* Last update: 2015
* Links per 2016-08-19: <50
* Notes: Yet to be tested
*/
/**
* watchlistSorter
* Sorts your watchlist by namespace making it easier to browse for important edits
* Linkback: [[User:Misza13/watchlistSorter.js]]
* Notes:
* 2016-04-09: Why did I disable this?
* 2016-08-01: Enabling again.
* 2018-07-05: Disabling: not needed with the recent new watchlist features
*/
/**
* watchUserContribs.js
* Linkback: [[User:Fred Gandt/watchUserContribs.js]]
* Documentation: none
* Feedback: none
* Notes: 2018-02-24: works fine
*/
/**
* wbfilter
* Triggers on watchlists, lets you filter by byte change
* Linkback: [[User:Splarka/wbfilter.js]]
* Notes: 2015-12-06: Does not seem to work at least not with monobook in Chrome.
*/
// 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: added 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.js
* 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]]
/**
* csdcheck.js
* CSD Check. Cleans the deletion reasons, so you aren't distracted by the Wiki-code.
* Linkback: [[User:Ale_jrb/Scripts/csdcheck.js]]
* Documentation: none
* Notes: July 2017: no longer working
*/
// END CSD RELATED
/**
* Sagittarius (named after the astrological sign) is a redirect editor.
* Linkback: [[User:Kephir/gadgets/sagittarius.js]]
* Documentation: [[User:Kephir/gadgets/sagittarius]]
* Notes: Forgot all the different {{R template index}} options? Use this script.
* 2017: Kephir stopped maintaining the script, use script below
*/
/**
* Sagittarius+
* A modified version of Keφr's redirect editing script, updated with more Rcats
* Documentation: [[User:Sam Sailor/Scripts/Sagittarius+]]
* Notes: Started 2018
*/
/**
* Capricorn
* A modified version of Sagittarius+
* Documentation: [[User:Wugapodes/Capricorn]]
* Notes: User:Wugapodes overtook maintenance in July 2019
*/
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
* Local settings for [[:de:Benutzer:TMg/autoFormatter.js]]
* Borrowed from [[User:Zyxw/autoFormatterSettings.js]]
* Documentation for autoFormatter: [[:m:User:TMg/autoFormatter]]
* Documentation: [[User:Sam Sailor/Scripts/autoFormatterSettings]]
* Notes:
* 2018-01-17: The local version [[User:Zyxw/autoFormatter.js]] did not work
* 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
*/
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]]
/**
* citetrans.js
* Citation translation
* Documentation: none
* Notes: 2019-06-16
*/
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AFrietjes%2Fcitetrans.js&action=raw&ctype=text/javascript'); // [[User:Frietjes/citetrans.js]]
/**
* Citoid.js
* A client for the Citoid service, used to generate citation templates from a URL
* Linkback: [[User:Salix alba/Citoid.js]]
* Documentation: [[User:Salix alba/Citoid]]
* Notes:
* Last update was in 2015.
* 2016-04-10: Disabling. In development, cf. [[Wikipedia:TWL/Citoid]]. Either the script is buggy or the server is down.
*/
/**
* 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]]
/**
* formatcitations
* Script adds tabs to harmonize the whitespace in citation templates
* Linkback: [[User:Waldir/formatcitations.js]]
* Documentation: User:Waldir/formatcitations
* Notes:
* A simple and brilliant script, but the fork User:Meteor sandwich yum/Tidy citations.js has more options.
* 2018-01: last substantial update was 2015-10
* Better fork: User:Sam Sailor/Scripts/Tidy citations.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%3AUcucha%2FHarvErrors.js&action=raw&ctype=text/javascript'); // [[User:Ucucha/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.js
* This script adds buttons next to isbns on wikipedia pages that will redirect the user to a readable digital copy of the referenced book.
* Documentation: none
* 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]]
/**
* revdel
* assist in requesting revision deletions via the copyvio-revdel template
* Documentation: [[User:Primefac/revdel]]
* Linkback: [[User:Primefac/revdel.js]]
* Notes: 2018-08
* 2018-09: Installing User:Enterprisey/cv-revdel.js instead
*/
/**
* Tidy citations by Meteor sandwich yum
* Script adds tabs to harmonize the whitespace in citation templates, appears in p-toolbar instead of p-cactions
* Linkback: [[User:Meteor sandwich yum/Tidy citations.js]]
* Documentation: [[User:Meteor sandwich yum/Tidy citations]]
* Notes:
* A fork of User:Waldir/formatcitations.js with more options
* One of many scripts that does not work if [[WP:WIKED]] is installed.
* Tried to run this via scriptmanager in global, sometimes it works, sometimes it doesn't. Enabling here again.
* 2018-01: last substantial update was 2014-03
* Better fork: User:Sam Sailor/Scripts/Tidy citations.js
*/
/**
* Tidy citations
* Linkback: [[User:Sam Sailor/Scripts/Tidy citations.js]]
*/
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASam+Sailor%2FScripts%2FTidy+citations.js&action=raw&ctype=text/javascript');
/**
* 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');
/**
* References segregator
* Temporarily moves footnotes to a separate text box on the edit screen, adding them back in when the page is saved.
* Linkback: [[User:PleaseStand/segregate-refs.js]]
* Documentation: [[User:PleaseStand/References segregator]]
* Notes:
* 2015-12-09: How often do I actually use this script?
* 2016-08-01: Added again
* 2017-02-12: Removed, using User:Cumbril/Reference Organizer (formerly: User:Cumbril/References Consolidator), se above
*/
/**
* reFill
* Expands bare references semi-automatically
* Linkback: [[:Meta:User:Zhaofeng Li/Reflinks.js]]
* Documentation: [[WP:REFILL]]
* Notes: Loaded in Meta:User:Sam Sailor/global.js
*/
/**
* refToolbarPlus
* Helps adding citation templates to articles
* Linkback: [[User:Apoc2400/refToolbarPlus.js]]
* Documentation: [[Wikipedia:RefToolbar]]
* Notes: Yet to be tested
*/
/**
* Sources
* Renders cited sources more consistent and congruent with Wikipedia naming conventions
* Linkback: [[User:Ohconfucius/script/Sources.js]]
* Documentation: [[User:Ohconfucius/script/Sources]]
* Notes:
* 2015-12-26: Enabling it here, removing from global.js
* 2016-08-18: Loaded via scriptManager.js
*/
/**
* WRStitle
* Adds a little blue "WRS" link to the right of an article title that will open up a Wikipedia Reference Search (WP:WRS) in a new tab
* Documentation: [[User:Sam Sailor/Scripts/WRStitle]]
* Notes: 2018-11-10: Loaded in common.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]]
/**
* copyvios
* Adds a "Copyvio check" link to the tools portlet that runs the current page through [[toollabs:copyvios|Earwig's Copyvio Detector]]
* Linkback: [[User:The Earwig/copyvios.js]]
* Documentation: none
* Notes: "p-tb" = toolbar portlet to the left
* Using User:Ahecht/Scripts/CVD.js (see below)
*/
/**
* 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.
* Linkback: [[User:Ahecht/Scripts/CVD.js]]
* 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');
/**
* deletionFinder
* Checks to see if the page has been previously deleted or discussed at AfD; if it has, provides links to the deletion log and/or AfDs.
* Documentation: none
* Notes: Brilliant script, you notice PrevDels and PrevAFDs on the spot.
* 2018-11-10: Now loaded in common.js
*/
/**
* deorphanizer
* Removes the orphan template from an article, nothing more.
* Documentation: none
* Notes: 2018-11-10: added. 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]]
/**
* EditWarChecker
* Checks the recent history (last 24 hours) of articles for possible edit wars.
* Documentation: [[User:Evad37/EditWarChecker]]
* Feedback: [[User talk:Evad37/EditWarChecker]]
* Notes: 20201229
*/
//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.js
* 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; 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.js
* 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.js
* 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; 2008-09-06 uninstalled, hardly never 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');
/**
* 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 Kephir
* Aids in assessing articles
* Linkback: [[User:Kephir/gadgets/rater.js]]
* Documentation: [[User:Kephir/gadgets/rater]]
* Notes: Kephir stopped maintaining the script, Evad37 started a similar script, see below
*/
/**
* 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
* Linkback: [[User:Galobtter/Shortdesc helper.js]]
* 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');
/**
* 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
*/
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
* Linkback: [[User:MusikAnimal/scriptManager.js]]
* Documentation: [[User:MusikAnimal/scriptManager]]
* Notes:
* 2024-01-10: Does not work with Vector-2022
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AMusikAnimal%2FscriptManager.js&action=raw&ctype=text/javascript');
scriptsToManage =
{
"Duplinks" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Evad37/duplinks-alt.js",
"OHC Common Terms" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Ohconfucius/script/Common Terms.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)
/**
* cleanupCleanup
* This script offers a quick way to remove Template:Cleanup tags that lack a reason= parameter.
* Linkback: [[User:This, that and the other/cleanupCleanup.js]]
* Documentation: none
* Notes: 2016-08-01: Tested and works, but how often did I use it? Disabling.
*/
/**
* 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
* 20201230 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]]
/**
* Common Terms
* Unlinks common terms
* Linkback: [[User:Ohconfucius/script/Common Terms.js]]
* Documentation: [[WP:COMMONTERMS]]
* Notes:
* 2015-12-26: Enabling it here, removing from global.js
* 2016-04-09: Disabling
* 2016-08-18: Loaded via scriptManager.js
*/
/**
* displayNumberOfTags
* Displays the number of maintenance tags in the article
* Linkback: [[User:Ugog Nizdast/displayNumberOfTags.js]]
* Documentation: [[User:Ugog Nizdast/displayNumberOfTags]]
* Notes:
*/
/**
* 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
* 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. Disabled again.
*/
//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 (legacy) via [[User:MusikAnimal/scriptManager.js]], but that does not work in Vector-2022.
*/
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/formatgeneral]]
* Fixes some general formatting
* 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. Disabled again.
*/
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AOhconfucius%2Fscript%2Fformatgeneral.js&action=raw&ctype=text/javascript'); // [[User:Ohconfucius/script/formatgeneral.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.
*/
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.
*/
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.
*/
/**
* Documentation: User talk:Ais523/stubtagtab2.js
* TLDR note per January 2018: this is the original stub tag script, and with the August 2016 update it is also the most updated script.
* Notes:
* Begun: Dec 2007
* Links per 2016-08-19: ~45–50
* OBS: No "Architecture" per 2016-08-19
* In Novmber 2011 code was copied from User:MC10/stubtagtab.js, so per August 2016 the edit summary will say "using [[User:MC10/stubtagtab.js|stubtagtab.js]]"
* Ais523 raised the question in Sep 2014 in https://en.wikipedia.org/w/index.php?title=User_talk:MC10&diff=631722561&oldid=626820653
* Verify this: https://en.wikipedia.org/w/index.php?title=User:Meteor_sandwich_yum/post_it&diff=next&oldid=602796223
* [[User:Ais523/stubtagtab2.js]] / [[User:MC10/stubtagtab.js]] / [[User:Wolfgang42/stubtagtab.js]]. All of them will return an error if the common "stub" tag is used.
* August 2016 update: Architecture group added, <nowiki>{{stub-stub}}</nowiki> bug fixed, edit summary links to script
* 2018-12-03: Uninstalled. User:Danski454/stubsearch.js is far easier to use.
*/
/**
* stubsearch
* Documentation: [[User:Danski454/stubsearch]]
* Feedback: [[User talk:Danski454/stubsearch]]
* Notes:
* 2018-10-29: Installed
* 2018-12-03: Superior to stubtagtab2.js by a mile
* 2020-12-22: Disabled, some stub templates do no load
*/
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ADanski454%2Fstubsearch.js&action=raw&ctype=text/javascript'); // [[User:Danski454/stubsearch.js]]
/**
* 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
/**
* 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]]
/**
* 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]]
}
/**
* AFCRHS by User:Enterprisey
* Helper script for [[Wikipedia:Articles for creation/Redirects and categories]]
* [[User:Enterprisey/AFCRHS.js]] R to [[User:EnterpriseyBot/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:EnterpriseyBot/AFCRHS.js' );
});
} else {
/**
* AFCH
* Helper script for [[Wikipedia:Articles for creation]]
* Linkback: [[MediaWiki:Gadget-afchelper.js]], [[User:Enterprisey/afch-master.js]]
* 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.
* 2018: Loaded as a gadget from prefs
*/
// mw.loader.using( ['mediawiki.api', 'mediawiki.util', 'mediawiki.user', 'jquery.chosen'] ).done( function() {
// importAFCScript( 'User:Enterprisey/afch-master.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]]
/**
* easy-AfC-Redirect-and-Category-Response.js
* 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.js
* 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.js
* 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
/**
* delsort by User:Fox Wilson
* Fox Wilson's Deletion Sorting script
* Linkback: [[User:Fox Wilson/delsort.js]]
* Documentation: [[WP:FWDS]]
* Notes: Last updated in 2013
* Per 2016-08: User:Enterprisey/delsort.js is superior.
*/
/**
* 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]]
// END DELSORT
/**
* 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]]
/**
* copyvios
* Adds a "Copyvio check" link to the tools portlet that runs the current page through [[toollabs:copyvios|Earwig's Copyvio Detector]]
* Using User:Ahecht/Scripts/CVD.js (see below)
*/
/**
* 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.
* Linkback: [[User:Ahecht/Scripts/CVD.js]]
* 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');
/**
* 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]]
/**
* 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') {
importScript('User:Equazcion/CatListMainTalkLinks.js'); //[[User:Equazcion/CatListMainTalkLinks.js]] Display main/talk links for pages in categories
/**
* 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]]
// 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
/**
* CloseRMnac
* Close RM discussions with RMpmc
* Documentation: [[User:Sam Sailor/Scripts/CloseRMnac]]
* Notes:
*/
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASam+Sailor%2FScripts%2FCloseRMnac.js&action=raw&ctype=text/javascript'); // [[User:Sam Sailor/Scripts/CloseRMnac.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
* Linkback: [[User:Bradv/Scripts/ExpandDiffs.js]]
* Documentation: [[User:Bradv/Scripts/ExpandDiffs]]
* Feedback:
* 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
* Linkback: [[User:Yair rand/HistoryView.js]]
* Documentation: none
* Notes:
*/
//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: none
* Notes: 2017-02-12 unloaded
*/
//importScript('User:Amorymeltzer/DiffOnly.js'); //[[User:Mr. Stradivarius/gadgets/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?
*/
/**
* Mark-blocked script
* Marks all linked blocked users with a strikethrough
* Linkback: [[User:NuclearWarfare/Mark-blocked script.js]]
* Documentation: none
* Notes: Is just a loader for [[:w:ru:MediaWiki:Gadget-markblocked.js]], and that I load from global.js.
*/
/**
* 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]]
/**
* useridentifier
* Adds icons to user pages to display some basic information about the user
* Linkback: [[User:Anomie/useridentifier.js]]
* Documentation: none
* Notes: Very useful script
* 2015-12-29: Loaded in Meta:User:Sam Sailor/global.js and works fine on other wikis; disabling here.
*/
/**
* userinfo
* Adds an information line below a user's name on their user and talk pages (but not subpages). Namely, this information is gender, privileges, account age, edit count, and how long ago the user made his/her last edit.
* Linkback: [[User:PleaseStand/userinfo.js]]
* Documentation: [[User:PleaseStand/User info]]
* Notes: Loaded in Meta:User:Sam Sailor/global.js and works fine on other wikis; disabling here.
*/
} // END ID RELATED
// EMPTY BOILERPLATE
/**
*
*
* Linkback: [[User:]]
* Documentation: [[]]
* Feedback: [[]]
* Notes: Yet to be tested
*/