User:Sam Sailor/common.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | The accompanying .css page for this skin is at User:Sam Sailor/common.css. |
// --- TOC ---
// VARIOUS
// SPECIAL PAGES
// CONTRIBUTIONS
// LOG
// MOVEPAGE
// RECENTCHANGES
// SEARCH
// USERRIGHTS
// WATCHLIST
// WHATLINKSHERE
// NOT SPECIAL
// ARTICLES AND DRAFTS
// DRAFTS
// ARTICLES AND TALK
// ARTICLES
// ANYWHERE BUT ARTICLES
// PROJECT SPACE
// USER SPACE AND USER TALK SPACE
// CATEGORIES
// FILES
// TEMPLATES
// WP AND TALK SPACES
// CONTRIBS, HISTORY, RECENT CHANGES, WATCHLIST
// CONTRIBS, HISTORY
// ID RELATED
// --- END TOC ---
// VARIOUS
// Quick links
$(function () {
mw.util.addPortletLink('p-personal', '//tools.wmflabs.org/copypatrol/en', 'CP', 'p-copypatrol', 'Copyright patrol');
mw.util.addPortletLink('p-personal', '//en.wikipedia.org/w/index.php?title=Special:Log&user=Sam%20Sailor', 'Logs', 'pt-mylogs', 'Your logged actions', '', '#pt-logout');
mw.util.addPortletLink('p-personal', '//en.wikipedia.org/w/index.php?title=Special:NewPages&dir=prev&hidepatrolled=1&hideredirs=0', 'NPP', 'p-npp', 'NPP');
mw.util.addPortletLink('p-personal', '//en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Script', 'JWB', 'p-jwb', 'JWB');
mw.util.addPortletLink('p-navigation', mw.util.getUrl('Special:RandomRedirect'), 'Random redirect', 'n-randomredirect', 'Load a random redirect', 'a');
});
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/hide.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/hide.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ahecht/Scripts/refresh.js&action=raw&ctype=text/javascript'); // [[User:Ahecht/Scripts/refresh.js]] adds "purge all" and "null edit all" options to the "Tools" menu on category pages, template pages etc.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ahecht/Scripts/pageswap.js&action=raw&ctype=text/javascript'); // [[User:Ahecht/Scripts/pageswap.js]]
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Bradv/Scripts/Superlinks.js&action=raw&ctype=text/javascript'); // [[User:Bradv/Scripts/Superlinks.js]], disabled, not updated for Vector 2022.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Cyberdog958/Scripts/Superlinks.js&action=raw&ctype=text/javascript'); // [[User:Cyberdog958/Scripts/Superlinks.js]] 2025-06-18: installed, updated for Vector 2022.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Enterprisey/talk-tab-count.js&action=raw&ctype=text/javascript'); // [[User:Enterprisey/talk-tab-count.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:SilverLocust/UserUnderline.js&action=raw&ctype=text/javascript'); // [[User:SilverLocust/UserUnderline.js]]
// SPECIAL PAGES
if (mw.config.get('wgCanonicalNamespace') === 'Special') {
//
// CONTRIBUTIONS
if (mw.config.get('wgCanonicalSpecialPageName') === 'Contributions') {
// AbuseFilterContribs [[User:Ingenuity/AbuseFilterContribs]] shows when a user attempted to make an edit, but were disallowed by an edit filter, in their Special:Contributions page.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ingenuity/AbuseFilterContribs.js&action=raw&ctype=text/javascript'); // [[User:Ingenuity/AbuseFilterContribs.js]]
// Contribs ranger [[User:Andrybak/Scripts/Contribs ranger]] generates links to a limited set (range) of user contributions (aka contribs), a user's logged actions, or of edits of particular page.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Andrybak/Scripts/Contribs_ranger.js&action=raw&ctype=text/javascript'); // [[User:Andrybak/Scripts/Contribs_ranger.js]]
// ContribsByPage [[User:BrandonXLF/ContribsByPage]] groups edits by a user on Special:Contributions by page to make the page cleaner and easier to read.
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/ContribsByPage.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/ContribsByPage.js]]
// ContribSearch [[User:DannyS712/ContribSearch]] is used to viewing edits by a single user. It will update every 3 seconds and insert newer edits.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/ContribSearch.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/ContribSearch.js]]
// Examine edits [[User:DannyS712/Examine edits]] 2025-06-18: disabled, does it work?
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/Examine_edits.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/Examine edits.js]]
// hidetopcontrib [[User:Markhurd/hidetopcontrib]] 'show/hide top'
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Markhurd/hidetopcontrib.js&action=raw&ctype=text/javascript'); // [[User:Markhurd/hidetopcontrib.js]]
window.userHideAllSubsequent = true;
// Kill-It-With-Fire [[Wikipedia:Kill-It-With-Fire]]
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Alexis_Jazz/Kill-It-With-Fire.js&action=raw&ctype=text/javascript'); // [[User:Alexis Jazz/Kill-It-With-Fire.js]]
// massRollback [[User:Writ Keeper/Scripts/massRollback]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/massRollback.js&action=raw&ctype=text/javascript'); // [[User:Writ Keeper/Scripts/massRollback.js]]
// more-block-info [[User:Firefly/more-block-info]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Firefly/more-block-info.js&action=raw&ctype=text/javascript'); // [[User:Firefly/more-block-info.js]]
// user-tabs-on-contribs [[User:Andrybak/Scripts/user-tabs-on-contribs]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Andrybak/Scripts/user-tabs-on-contribs.js&action=raw&ctype=text/javascript'); // [[User:Andrybak/Scripts/user-tabs-on-contribs.js]]
// watchUserContribs
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Fred_Gandt/watchUserContribs.js&action=raw&ctype=text/javascript'); // [[User:Fred Gandt/watchUserContribs.js]]
} // END CONTRIBUTIONS
// LOG
} else if (mw.config.get('wgCanonicalSpecialPageName') === 'Log') {
// Pretty rights log [[User:DannyS712/Pretty rights log]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/Pretty_rights_log.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/Pretty rights log.js]]
// END LOG
// MOVEPAGE
} else if (mw.config.get('wgCanonicalSpecialPageName') === 'MovePage') {
// Automatically tick the "Move subpages" option when moving pages.
var moveSubpagesBox=document.getElementsByName("wpMovesubpages")[0];void 0!==moveSubpagesBox&&(moveSubpagesBox.checked=!0);
// RemoveDoubleNamespace, automatically filter double namespaces from move form.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Alexis_Jazz/RemoveDoubleNamespace.js&action=raw&ctype=text/javascript'); // [[User:Alexis Jazz/RemoveDoubleNamespace.js]]
// CombineMovePrefix
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:SilverLocust/CombineMovePrefix.js&action=raw&ctype=text/javascript'); // [[User:SilverLocust/CombineMovePrefix.js]]
// END MOVEPAGE
// RECENTCHANGES
} else if (mw.config.get('wgCanonicalSpecialPageName') === 'RecentChanges') {
// Color top links
mw.util.addCSS(".mw-rollback-link { background-color:#FFFF88; }");
// rcpatrol [[User:Awesome Aasim/rcpatrol]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Awesome_Aasim/rcpatrol.js&action=raw&ctype=text/javascript'); // [[User:Awesome Aasim/rcpatrol.js]]
// END RECENTCHANGES
// SEARCH
} else if (mw.config.get('wgCanonicalSpecialPageName') === 'Search') {
// EnhancedSearchPage [[User:JAAqqO/EnhancedSearchPage]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:JAAqqO/EnhancedSearchPage.js&action=raw&ctype=text/javascript'); // [[User:JAAqqO/EnhancedSearchPage.js]]
// Search sort [[User:DreamRimmer/Search sort]]
// mw.loader.load('//en.wikipedia.org/w/index.php?title=User:PrimeHunter/Search_sort.js&action=raw&ctype=text/javascript'); // [[User:PrimeHunter/Search_sort.js]] superseded by DreamRimmer's script
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DreamRimmer/Search_sort.js&action=raw&ctype=text/javascript'); // [[User:DreamRimmer/Search_sort.js]]
// search-links [[User:Eejit43/scripts/search-links]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Eejit43/scripts/search-links.js&action=raw&ctype=text/javascript'); // [[User:Eejit43/scripts/search-links.js]]
// SearchSuite [[User talk:The Transhumanist/SearchSuite.js]]
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:The_Transhumanist/SearchSuite.js&action=raw&ctype=text/javascript'); // [[User:The Transhumanist/SearchSuite.js]]
// END SEARCH
// USERRIGHTS
} else if (mw.config.get('wgCanonicalSpecialPageName') === 'UserRights') {
// Pretty rights log [[User:DannyS712/Pretty rights log]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/Pretty_rights_log.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/Pretty rights log.js]]
// END USERRIGHTS
// WATCHLIST
} else if (mw.config.get('wgCanonicalSpecialPageName') === 'Watchlist') {
// Thanky [[User:Evad37/Thanky]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Evad37/Thanky.js&action=raw&ctype=text/javascript'); // [[User:Evad37/Thanky.js]]
// END WATCHLIST
// WHATLINKSHERE
} else if (mw.config.get('wgCanonicalSpecialPageName') === 'WhatLinksHere') {
// AddActionLinks
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:He7d3r/Tools/AddActionLinks.js&action=raw&ctype=text/javascript'); // [[meta:User:He7d3r/Tools/AddActionLinks.js]]
// SortWhatLinksHere [[User:GhostInTheMachine/SortWhatLinksHere]] Sorts the links displayed by the What links here page.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:GhostInTheMachine/SortWhatLinksHere.js&action=raw&ctype=text/javascript'); // [[User:GhostInTheMachine/SortWhatLinksHere.js]]
// Source links, tries to search for pages where the link is in the source.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:PrimeHunter/Source_links.js&action=raw&ctype=text/javascript'); // [[User:PrimeHunter/Source links.js]]
// whatLinksHereLinkFilter [[User:V111P/js/What Links Here link filter]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:V111P/js/whatLinksHereLinkFilter.js&action=raw&ctype=text/javascript'); // [[User:V111P/js/whatLinksHereLinkFilter.js]]
// END WHATLINKSHERE
// END SPECIAL PAGES
} else {
// Load scripts that should not load on a special page
// NOT SPECIAL
// HotCat edit summary prompt fix ([[Special:PermaLink/895804159]])
if (mw.config.get('wgAction') === 'edit' || mw.config.get('wgAction') === 'submit') {
$(function () {
if (document.getElementsByName("wpSummary")[0].value.indexOf('WP:HC|HotCat') !== -1 && document.getElementsByName('wpAutoSummary')[0]) {
document.getElementsByName('wpAutoSummary')[0].value = '1';
}
});
}
window.hotcat_use_category_links = true;
/*
// Add (nr) 'no redirect' links after redirects ([[Special:PermaLink/1114527221]])
mw.hook( 'wikipage.content' ).add(function ($el) {
if ( mw.config.get('wgAction') !== 'view' ) {
return;
}
$el.find( '.mw-redirect' ).each(function (i, e) {
var sub = document.createElement("sub");
sub.append("(");
var link = document.createElement("a");
var url = new URL(e.getAttribute("href"), window.location.href);
url.searchParams.set("redirect", "no");
link.setAttribute("href", url.toString());
link.setAttribute("title", "Open the link without following redirects");
link.innerText = "nr";
sub.appendChild(link);
sub.append(")");
e.insertAdjacentElement("afterend", sub);
});
});
*/
// Null edit (modified from [[Special:PermaLink/1083287384]]) [[User:BrandonXLF/NullEdit.js]]
$(mw.util.addPortletLink('p-personal', '#', 'Null edit')).click(function (e) {
e.preventDefault();
new mw.Api().edit(mw.config.get('wgPageName'), function(rev) {
return rev.content;
}).then(function () {
window.location.reload();
});
});
/*
// Always scroll to top when previewing ([[Special:PermaLink/1229177866]])
(function (){
const allowedActions = ['edit', 'submit'];
if(allowedActions.indexOf(mw.config.get("wgAction")) != -1){
setTimeout(function () {
window.scrollTo({ top: 0});
}, 1000);
}
})();
*/
/* mw.loader.using("mediawiki.util", function () {
var dashButton = mw.util.addPortletLink("p-cactions", "#", "En dash", "ca-enDashCopy", "Copy EnDash");
$(dashButton).click(function () { navigator.clipboard.writeText("–"); });
});
*/
// Alex 21/script-functions [[User:Alex 21/script-functions]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Alex_21/script-functions.js&action=raw&ctype=text/javascript'); // [[User:Alex 21/script-functions.js]]
// Aligner [[User:Taavi/Aligner]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Taavi/Aligner.js&action=raw&ctype=text/javascript'); // [[User:Taavi/Aligner.js]]
window.alignerExtraSearches = [
'{{AFLGameDetailed',
'{{Audio sample',
'{{Discography list',
'{{Episode list',
'{{External music video',
'{{Extra album cover',
'{{Extra chronology',
'{{Extra tour chronology',
'{{Extra track listing',
'{{Multiple image',
'{{Non-free',
'{{Quote box',
'{{Rugbyleaguebox',
'{{Rugby league match squad',
'{{Rugby league squad player',
'{{Series overview',
'{{Singles',
'{{Speciesbox',
'{{Subspeciesbox',
'{{Taxobox',
'{{Track listing',
'{{Tweet',
];
// attributetranslation [[User:CFA/scripts/attributetranslation]] automatically adds attribution (with a dummy edit and the appropriate talk page template) to articles with non-attributed translations of other Wikipedias and notifies the translator(s).
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:CFA/scripts/attributetranslation.js&action=raw&ctype=text/javascript'); // [[User:CFA/scripts/attributetranslation.js]]
// auto-watchlist-expiry [[User:Rummskartoffel/auto-watchlist-expiry]] Watchlists pages you edit for a duration of your choosing.
window.autoWatchlistExpiry = { "edit": "2 weeks", "delete": "6 months", "create": "infinite", "undo": "2 weeks" };
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Rummskartoffel/auto-watchlist-expiry.js&action=raw&ctype=text/javascript'); // [[User:Rummskartoffel/auto-watchlist-expiry.js]]
// autoFormatterSettings [[User:Sam Sailor/Scripts/autoFormatterSettings]] loaded in global.js
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Sam_Sailor/Scripts/autoFormatterSettings.js&action=raw&ctype=text/javascript'); // [[User:Sam Sailor/Scripts/autoFormatterSettings.js]]
// Capricorn [[User:Wugapodes/Capricorn]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Wugapodes/Capricorn.js&action=raw&ctype=text/javascript'); // [[User:Wugapodes/Capricorn.js]]
// Citation Remover [[User:GrabUp/Citation Remover]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:GrabUp/Citation_Remover.js&action=raw&ctype=text/javascript'); // [[User:GrabUp/Citation Remover.js]]
// csdhelper [[User:Ale_jrb/Scripts]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ale_jrb/Scripts/csdhelper.js&action=raw&ctype=text/javascript'); // [[User:Ale_jrb/Scripts/csdhelper.js]]
// Configuration for CSD Helper
var overwriteDeclineReasons = true;
var notifyByDefaultDel = false; // whether to automatically check the 'notify user' box when changing a speedy deletion rationale
var notifyByDefaultDec = false; // whether to automatically check the 'notify user' box when declining a speedy deletion
var notifyByDefaultPrd = false; // whether to automatically check the 'notify user' box when converting a speedy deletion to a PROD
var notifyByDefaultNew = false; // whether to automatically check the 'use newbie message' box when notifying a user
var myDeclineListing = '%CRITERION%: %REASON%';
var myDeclineSummary = 'Declining speedy (%CRITERION%) — %REASON%';
var myDeclineSummarySpecial = 'Declining speedy — %REASON%';
var logOnDecline = true;
var logOnDeclinePath = 'User:Sam Sailor/Declined speedies log';
var overwriteDeclineReasons = true;
// csdreasons
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:SoWhy/csdreasons.js&action=raw&ctype=text/javascript'); // [[User:SoWhy/csdreasons.js]]
// CustomSummaryPresets [[User:Enterprisey/CustomSummaryPresets]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Enterprisey/CustomSummaryPresets.js&action=raw&ctype=text/javascript'); // [[User:Enterprisey/CustomSummaryPresets.js]]
var customNamespaceSummaries = {
'0': [
"- not a recognised image file. Images must be uploaded first, see [[WP:UPIMAGE]] (copyright allowing).",
"Not a recognised image file. Images must be uploaded first, see [[WP:UPIMAGE]] (copyright allowing).",
"- changing a file name in-text breaks the link to the file. Please use [[H:PREVIEW|preview]] to avoid the mistake.",
"Changing a file name in-text breaks the link to the file. Please use [[H:PREVIEW|preview]] to avoid the mistake.",
"Fixing infobox errors",
"[[Help:Wikitext|WikiSyntax]] fixes; citation fixes per [[Help:Citation Style 1|CS1]]; [[WP:COPYEDIT|copyediting]] per the [[Wikipedia:Manual of Style|Manual of Style]]; [[User:Sam Sailor/Scripts/Tidy citations.js|tidy citations]]",
"Infobox fix(es); [[Help:Wikitext|WikiSyntax]] fixes; citation fixes per [[Help:Citation Style 1|CS1]]; [[WP:COPYEDIT|copyediting]] per the [[Wikipedia:Manual of Style|Manual of Style]]; [[User:Sam Sailor/Scripts/Tidy citations.js|tidy citations]]",
"Adding [[Wikipedia:Citing sources|citation]]",
"Adding [[Help:Interlanguage links|interlanguage links]] etc.",
"Article is no longer unreferenced – and [[WP:URA|you can help!]]",
"[[WP:SALORDER|Chronological ordering]]",
"Citation fixes per [[Help:Citation Style 1|CS1]]; [[WP:COPYEDIT|copyediting]] per the [[Wikipedia:Manual of Style|Manual of Style]]; [[User:Sam Sailor/Scripts/Tidy citations.js|tidy citations]]",
"[[WP:DUPREF|Combining duplicated citations]]",
"[[WP:FIXDABLINKS|Repairing]] links to disambiguation page - and [[Wikipedia:Disambiguation pages with links|you can help!]]",
"Removing [[Template:Broken ref/cite error list|inapplicable tag]]",
"{{[[Template:Prod blp|Prod blp]]}} applies only when the article contains no sources in any form (as references, external links, etc.) which support any statements made about the person in the biography, see [[WP:BLPPROD]].",
"Per [[MOS:SEEALSO]]/[[MOS:NOTSEEALSO]]",
"Removing [[WP:SELFREDIRECT]] etc.",
],
'1': [
"Comment",
"Reply",
"Suggestion",
],
'3': [
"Friendly message",
"Comment",
"Reply",
"Suggestion",
],
'10': [
"Per [[WP:NAVNOREDIRECT]]",
],
'118': [
"Clean-up, [[WP:COPYEDIT|copyediting]] and various fixes",
],
};
// External Links Remover [[User:GrabUp/External Links Remover]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:GrabUp/External_Links_Remover.js&action=raw&ctype=text/javascript'); // [[User:GrabUp/External Links Remover.js]]
// findargdups [[User:Frietjes/findargdups]]
findargdupsresultsbox = 'yes';
findargdupsnonefound = 'No dupes!';
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Frietjes/findargdups.js&action=raw&ctype=text/javascript'); // [[User:Frietjes/findargdups.js]]
// highlightPiped
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Jeeputer/highlightPiped.js&action=raw&ctype=text/javascript'); // [[User:Jeeputer/highlightPiped.js]]
// linkclassifier [[User:Anomie/linkclassifier]] adds various classes to the link elements based on various characteristics.
mw.hook('LinkClassifier').add(function (linkClassifier) {
linkClassifier.cats['redirect-with-possibilities'] = ['Category:Redirects with possibilities'].sort();
});
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Anomie/linkclassifier.js&action=raw&ctype=text/javascript'); // [[User:Anomie/linkclassifier.js]]
importStylesheet('User:Anomie/linkclassifier.css');
// massretarget
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Andy_M._Wang/massretarget.js&action=raw&ctype=text/javascript'); // [[User:Andy M. Wang/massretarget.js]]
// move-links
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Danski454/move-links.js&action=raw&ctype=text/javascript'); // [[User:Danski454/move-links.js]]
// subsearch
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:PleaseStand/subsearch.js&action=raw&ctype=text/javascript'); // [[User:PleaseStand/subsearch.js]]
// ToDoLister
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Evad37/ToDoLister.js&action=raw&ctype=text/javascript'); // [[User:Evad37/ToDoLister.js]]
//var todo_portlet = "p-cactions"; // Defines which portlet menu the link is added to - see [[Help:Customizing toolbars]] for options
//var todo_subpage = "UPtodo"; // Subpage where the to-do list entry be added
//var todo_addfirst = "yes"; // Replace null with any value, e.g. "yes" (including quotation marks) to show the Add link before the View link.
//var todo_viewnew = "yes"; // Replace null with any value, e.g. "yes" (including quotation marks) to make the View link open in a new tab or window.
//var todo_viewlabel = "→todo";
//var todo_addlabel = "+todo";
// END NOT SPECIAL
// ARTICLES AND DRAFTS
if (mw.config.get('wgNamespaceNumber') === 0 || mw.config.get('wgNamespaceNumber') === 118) {
// scriptManager
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:MusikAnimal/scriptManager.js&action=raw&ctype=text/javascript'); // [[User:MusikAnimal/scriptManager.js]]
scriptsToManage = {
"Add Citation Needed" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Phlsph7/AddCitationNeededTagsToUnreferencedParagraphs.js",
"Books to sfn" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:DaxServer/BooksToSfn.js",
"Duplinks" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Aaron_Liu/duplinks.js",
"Fixing Ur Ciatations" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Alexis_Jazz/FUC.js",
"Highlight Unreferenced Passages" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Phlsph7/HighlightUnreferencedPassages.js",
"List Unreferenced Paragraphs" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Phlsph7/ListUnreferencedParagraphs.js",
"OHC Common Terms" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Ohconfucius/script/Common_Terms.js",
"OHC Dashes" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Ohconfucius/dashes.js",
"OHC EngvarB" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Ohconfucius/script/EngvarB.js",
"Readability" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Phlsph7/Readability.js",
"Reference Deselector" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Chlod/Scripts/ReferenceDeselector.js",
"Show nbsp" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Evad37/showhardspaces.js",
};
// Advisor
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ebrahames/Advisor.js&action=raw&ctype=text/javascript'); // [[User:Ebrahames/Advisor.js]]
// AI Cleaner [[User:Sophisticatedevening/AI Cleaner]] removes unnecessary bolding/asterisks, and fixes other AI slop.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Sophisticatedevening/AI_Cleaner.js&action=raw&ctype=text/javascript'); // [[User:Sophisticatedevening/AI_Cleaner.js]]
// AI Proofreader [[User:Polygnotus/Scripts/AI Proofreader]]: Use Gemini (free!), Claude or ChatGPT to get suggestions how to improve an article.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Polygnotus/Scripts/AI_Proofreader.js&action=raw&ctype=text/javascript'); // [[User:Polygnotus/Scripts/AI_Proofreader.js]]
// Automatic Referencing Assistant [[User:TheJJJunk/ARA]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:TheJJJunk/ARA.js&action=raw&ctype=text/javascript'); // [[User:TheJJJunk/ARA.js]]
// Autoref, requires Citoid (BrandonXLF)
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/Autoref.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/Autoref.js]]
// categoriessort [[User:Alex 21/script-categoriessort]], superseded by [[User:Epicgenius/sortcategories.js]]
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Alex_21/script-categoriessort.js&action=raw&ctype=text/javascript'); // [[User:Alex 21/script-categoriessort.js]]
// checkTranslationAttribution [[User:Vanderwaalforces/checkTranslationAttribution]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Vanderwaalforces/checkTranslationAttribution.js&action=raw&ctype=text/javascript'); // [[User:Vanderwaalforces/checkTranslationAttribution.js]]
// CitationStyleMarker
window.CSMarkerMode = 'both';
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/CitationStyleMarker.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/CitationStyleMarker.js]]
// CiteHighlighter
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Novem_Linguae/Scripts/CiteHighlighter.js&action=raw&ctype=text/javascript'); // [[User:Novem Linguae/Scripts/CiteHighlighter.js]]
// citetrans. Notes: Installed 2019-06-16; 2024-08: disabled at some point in time, I have not missed it.
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Frietjes/citetrans.js&action=raw&ctype=text/javascript'); // [[User:Frietjes/citetrans.js]]
// Citoid (BrandonXLF), required for [[User:BrandonXLF/Autoref]]
mw.loader.getScript('https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/Citoid.js&action=raw&ctype=text/javascript').then(function(){
getCitoidRef('9781857800913').then(function(ref){
console.log(ref);
});
});
// cv revdel. 2025-06-18: installed
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Red-tailed hawk/cv_revdel.js&action=raw&ctype=text/javascript'); // [[User:Red-tailed hawk/cv_revdel.js]]
// cv-revdel [[User:Enterprisey/cv-revdel]] Quickly fills out {{Copyvio-revdel}}, using the history page's built-in radio buttons. 2025-06-18: disabled, using Red-tailed hawk's fork.
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Enterprisey/cv-revdel.js&action=raw&ctype=text/javascript'); // [[User:Enterprisey/cv-revdel.js]]
// CVD (Copy-Violation Detector) [[User:Ahecht/Scripts/CVD]]
//var dupdet = true;
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ahecht/Scripts/CVD.js&action=raw&ctype=text/javascript'); // [[User:Ahecht/Scripts/CVD.js]]
// deorphanizer
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/deorphanizer.js&action=raw&ctype=text/javascript'); // [[User:Writ Keeper/Scripts/deorphanizer.js]]
// DetectPromo [[User:Polygnotus/Scripts/DetectPromo]] detects and displays potentially promotional words.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Polygnotus/Scripts/DetectPromo-v2.js&action=raw&ctype=text/javascript'); // [[User:Polygnotus/Scripts/DetectPromo-v2.js]]
// DisamAssist [[User:Qwertyytrewqqwerty/DisamAssist]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Qwertyytrewqqwerty/DisamAssist.js&action=raw&ctype=text/javascript'); // [[User:Qwertyytrewqqwerty/DisamAssist.js]]
// DuplicateReferences [[User:Polygnotus/DuplicateReferences]] detects and displays duplicate URLs in the references section of Wikipedia articles.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Polygnotus/DuplicateReferences.js&action=raw&ctype=text/javascript'); // [[User:Polygnotus/DuplicateReferences.js]]
// DYKcheck [[User:Shubinator/DYKcheck]] is a JavaScript tool for checking Did You Know eligibility.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Shubinator/DYKcheck.js&action=raw&ctype=text/javascript'); // [[User:Shubinator/DYKcheck.js]]
// EditWarChecker [[User:Evad37/EditWarChecker]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Evad37/EditWarChecker.js&action=raw&ctype=text/javascript'); // [[User:Evad37/EditWarChecker.js]]
// HarvErrors [[User:Trappist the monk/HarvErrors]] finds problems with sfn/harv-style footnotes. A fork of [[User:Ucucha/HarvErrors.js]].
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Trappist_the_monk/HarvErrors.js&action=raw&ctype=text/javascript'); // [[User:Trappist the monk/HarvErrors.js]]
// (Pseudo) Headings [[User:Guywan/Scripts/Headings]] converts incorrectly used pseudo-headings into headings. 2025-06-18: does not work with Vector 2022.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Guywan/Scripts/Headings.js&action=raw&ctype=text/javascript'); // [[User:Guywan/Scripts/Headings.js]]
// highlight-homographs [[User:Eejit43/scripts/highlight-homographs]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Eejit43/scripts/highlight-homographs.js&action=raw&ctype=text/javascript'); // [[User:Eejit43/scripts/highlight-homographs.js]]
// HighlightQuotes [[User:Chew/scripts/HighlightQuotes]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Chew/scripts/HighlightQuotes.js&action=raw&ctype=text/javascript'); // [[User:Chew/scripts/HighlightQuotes.js]]
// HotDefaultSort [[User:BrandonXLF/HotDefaultSort]] adds buttons beside the default sort key to add a default sort, modify the current default sort, and to remove the current default sort.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/HotDefaultSort.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/HotDefaultSort.js]]
// IABooks. Notes: 2019-04-02; disabled 2019-06-16, seldom used
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Reinischmax/IABooks.js&action=raw&ctype=text/javascript'); // [[User:Reinischmax/IABooks.js]]
// IllWill [[User:Cobaltcigs/IllWill]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Cobaltcigs/IllWill.js&action=raw&ctype=text/javascript'); // [[User:Cobaltcigs/IllWill.js]]
// ListSorter [[User:BrandonXLF/ListSorter]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/ListSorter.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/ListSorter.js]]
// MergeDuplicateRefs
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ingenuity/MergeDuplicateRefs.js&action=raw&ctype=text/javascript'); // [[User:Ingenuity/MergeDuplicateRefs.js]]
// MoreDiffInfo [[User:BrandonXLF/MoreDiffInfo]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/MoreDiffInfo.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/MoreDiffInfo.js]]
// Reference Organizer [[User:Kaniivel/Reference Organizer]]
if (typeof(refConsolidateConfig) === 'undefined') refConsolidateConfig = {};
refConsolidateConfig.sort = true;
refConsolidateConfig.usetemplateR = false;
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Kaniivel/RefConsolidate_start.js&action=raw&ctype=text/javascript'); // [[User:Kaniivel/RefConsolidate start.js]]
// RefRenamer [[User:Nardog/RefRenamer]] replaces reference names like ":0" with descriptive ones like "Smith-2015".
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Nardog/RefRenamer.js&action=raw&ctype=text/javascript'); // [[User:Nardog/RefRenamer.js]]
// reviewsourcecheck [[User:Lingzhi2/reviewsourcecheck]] simplifies source reviews by flagging 16 types of errors in the references and/or notes. Depends on User:Ucucha/HarvErrors.js or the fork User:Trappist the monk/HarvErrors.js.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Lingzhi2/reviewsourcecheck.js&action=raw&ctype=text/javascript'); // [[User:Lingzhi2/reviewsourcecheck.js]]
// smaller templates [[User:Gary/smaller templates]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Gary/smaller_templates.js&action=raw&ctype=text/javascript'); // [[User:Gary/smaller templates.js]]
// sortcategories [[User:Epicgenius/sortcategories]] fork of [[User:Alex 21/script-categoriessort.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Epicgenius/sortcategories.js&action=raw&ctype=text/javascript'); // [[User:Epicgenius/sortcategories.js]]
// subjects age from year [[User:Gary/subjects age from year]] In an article about a person or a company, when the mouse hovers over a year in the article, the age of the article's subject by that year appears in a tooltip.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Gary/subjects_age_from_year.js&action=raw&ctype=text/javascript'); // [[User:Gary/subjects age from year.js]]
// Tidy citations [[User:Sam Sailor/Scripts/Tidy citations]] will harmonize spacing in citation templates or align them vertically the way infoboxes are aligned.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Sam_Sailor/Scripts/Tidy_citations.js&action=raw&ctype=text/javascript'); // [[User:Sam Sailor/Scripts/Tidy citations.js]]
// TitleCaseConverter [[User:ZKang123/TitleCaseConverter]]
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:ZKang123/TitleCaseConverter.js&action=raw&ctype=text/javascript'); // [[User:ZKang123/TitleCaseConverter.js]]
// w2wFinder. [[User:Danski454/w2wFinder]] Notes: Installed 2019-04-17. Disabled again, far too many false positives with the current configuration, [[Special:PermaLink/874614199]].
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Danski454/w2wFinder.js&action=raw&ctype=text/javascript'); // [[User:Danski454/w2wFinder.js]]
} // END ARTICLES AND DRAFTS
// DRAFTS
if (mw.config.get('wgNamespaceNumber') === 118) {
// Draft no cat
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/Draft_no_cat.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/Draft no cat.js]]
// Draft re cat
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/Draft_re_cat.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/Draft re cat.js]]
// draft-sorter (Ahecht)
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ahecht/Scripts/draft-sorter.js&action=raw&ctype=text/javascript'); // [[User:Ahecht/Scripts/draft-sorter.js]]
// DraftCleaner
window.draftCleanerPutInMoreMenu = true;
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Novem_Linguae/Scripts/DraftCleaner.js&action=raw&ctype=text/javascript'); // [[User:Novem Linguae/Scripts/DraftCleaner.js]]
// DraftDiff
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Firefly/draftdiff.js&action=raw&ctype=text/javascript'); // [[User:Firefly/draftdiff.js]]
// edits-since-decline [[User:SD0001/edits-since-decline]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:SD0001/edits-since-decline.js&action=raw&ctype=text/javascript'); // [[User:SD0001/edits-since-decline.js]]
} // END DRAFTS
// ARTICLES AND TALK
if ((mw.config.get('wgNamespaceNumber') === 0) || (mw.config.get('wgNamespaceNumber') === 1)) {
// logger
var pagesToCollect = [
{page: 'User:Sam Sailor/AATP log', caption: '+AATP log'},
{page: 'User:Sam Sailor/ALS log', caption: '+ALS log'},
{page: 'User:Sam Sailor/MISSFILE log', caption: '+MISSFILE log'},
{page: 'User:Sam Sailor/Sourced log', caption: '+Sourced log'}
];
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Sam_Sailor/Scripts/logger.js&action=raw&ctype=text/javascript'); // [[User:Sam Sailor/logger.js]]
// MoveToDraft
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:MPGuy2824/MoveToDraft.js&action=raw&ctype=text/javascript'); // [[User:MPGuy2824/MoveToDraft.js]]
// PageMoverClosure
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/PageMoverClosure.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/PageMoverClosure.js]]
// rater by Evad37
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Evad37/rater.js&action=raw&ctype=text/javascript'); // [[User:Evad37/rater.js]]
} // END ARTICLES AND TALK
// ARTICLES
if (mw.config.get('wgNamespaceNumber') === 0) {
// CollapseSections. 2020-12-30 disabled. Seems to be buggy at times, and I don't think I will miss the functionality.
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/CollapseSections.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/CollapseSections.js]]
// coordInserter [[User:Jeeputer/coordInserter]] inserting Coord template on articles listed on Category:Articles missing coordinates with coordinates on Wikidata made easy.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Jeeputer/coordInserter.js&action=raw&ctype=text/javascript'); // [[User:Jeeputer/coordInserter.js]]
// De-Stub [[User:DannyS712/De-Stub]] remove stub templates from a page.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/De-Stub.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/De-Stub.js]]
// deOrphan [[User:DannyS712/deOrphan]] Easily remove orphan tags
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/deOrphan.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/deOrphan.js]]
// diffedit [[m:User:Jon Harald Søby/diffedit]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Jon_Harald_Søby/diffedit.js&action=raw&ctype=text/javascript'); // [[m:User:Jon Harald Søby/diffedit.js]]
// domainRedirect
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Opencooper/domainRedirect.js&action=raw&ctype=text/javascript'); // [[User:Opencooper/domainRedirect.js]]
// DuplicatedRefs. 'Highlight duplicate refs'.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Chlod/Scripts/DuplicatedRefs.js&action=raw&ctype=text/javascript'); // [[User:Chlod/Scripts/DuplicatedRefs.js]]
// Find Link [[User:1AmNobody24/Find Link]] helps using the tool Find link, useful for [[WP:NPP]] or [[WP:DEORPHAN]].
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:1AmNobody24/Find_Link.js&action=raw&ctype=text/javascript'); // [[User:1AmNobody24/Find_Link.js]]
// FindSources
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/FindSources.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/FindSources.js]]
// infoboxgap
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Frietjes/infoboxgap.js&action=raw&ctype=text/javascript'); // [[User:Frietjes/infoboxgap.js]]
// lastEdit
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Opencooper/lastEdit.js&action=raw&ctype=text/javascript'); // [[User:Opencooper/lastEdit.js]]
// [[User:Ohconfucius/script/MOSNUM dates]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates.js&action=raw&ctype=text/javascript'); // [[User:Ohconfucius/script/MOSNUM dates.js]]
// [[User:Ohconfucius/script/Sources]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ohconfucius/script/Sources.js&action=raw&ctype=text/javascript'); // [[User:Ohconfucius/script/Sources.js]]
// OrphanStatus [[User:Technical 13/Scripts/OrphanStatus]] superseded by [[User:DannyS712/deOrphan]]
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Technical_13/Scripts/OrphanStatus.js&action=raw&ctype=text/javascript'); // [[User:Technical 13/Scripts/OrphanStatus.js]]
// Red files [[User:DannyS712/Red files]] changes file links to point to the file's page, to easily find any deletions or other log entries.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/Red_files.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/Red files.js]]
// RefCruncher [[User:Guywan/Scripts/RefCruncher]] Ctrl+alt+r
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Guywan/Scripts/RefCruncher.js&action=raw&ctype=text/javascript'); // [[User:Guywan/Scripts/RefCruncher.js]]
// ReviewStatus
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Novem_Linguae/Scripts/ReviewStatus.js&action=raw&ctype=text/javascript'); // [[User:Novem Linguae/Scripts/ReviewStatus.js]]
// SATG [[User:DannyS712/SATG]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/SATG.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/SATG.js]]
// SATG CORP
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Red-tailed_hawk/SATG_CORP.js&action=raw&ctype=text/javascript'); // [[User:Red-tailed_hawk/SATG_CORP.js]]
// StubSorter
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:SD0001/StubSorter.js&action=raw&ctype=text/javascript'); // [[User:SD0001/StubSorter.js]]
// undo-last-edit
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Enterprisey/undo-last-edit.js&action=raw&ctype=text/javascript'); // [[User:Enterprisey/undo-last-edit.js]]
// Unpipe [[User:Nardog/Unpipe]] converts each piped link to a non-piped one if both lead to the same article.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Nardog/Unpipe.js&action=raw&ctype=text/javascript'); // [[User:Nardog/Unpipe.js]]
// Wordcount [[User:Caorongjin/wordcount]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Caorongjin/wordcount.js&action=raw&ctype=text/javascript'); // [[User:Caorongjin/wordcount.js]]
// END ARTICLES
} else {
// ANYWHERE BUT ARTICLES
// PROJECT SPACE
if (mw.config.get('wgNamespaceNumber') === 4) {
if (mw.config.get('wgPageName').indexOf('Wikipedia:Articles_for_deletion/') >= 0) {
// delsort by User:Enterprisey
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Enterprisey/delsort.js&action=raw&ctype=text/javascript'); // [[User:Enterprisey/delsort.js]]
// oldafd
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Amorymeltzer/oldafd.js&action=raw&ctype=text/javascript'); // [[User:Amorymeltzer/oldafd.js]]
}
// AFC/R + AFC/C
if ((mw.config.get('wgPageName') === 'Wikipedia:Articles_for_creation/Redirects') || (mw.config.get('wgPageName') === 'Wikipedia:Articles_for_creation/Categories')) {
// afcrc-helper
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Eejit43/scripts/afcrc-helper.js&action=raw&ctype=text/javascript'); // [[User:Eejit43/scripts/afcrc-helper.js]]
}
// JavaScript Wiki Browser (JWB)
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript'); // [[User:Joeytje50/JWB.js/load.js]]
// RM/TR
if (mw.config.get('wgPageName') == 'Wikipedia:Requested_moves/Technical_requests') {
// rmtr-helper
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Eejit43/scripts/rmtr-helper.js&action=raw&ctype=text/javascript'); // [[User:Eejit43/scripts/rmtr-helper.js]]
}
// SPI
if (mw.config.get('wgPageName').indexOf('Wikipedia:Sockpuppet_investigations/') >= 0) {
// cuStaleness
lazyCheckCUStaleness = false;
lazyCheckCatStaleness = false;
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/cuStaleness.js&action=raw&ctype=text/javascript'); // [[User:Writ Keeper/Scripts/cuStaleness.js]]
// mark-join-date
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Enterprisey/mark-join-date.js&action=raw&ctype=text/javascript'); // [[User:Enterprisey/mark-join-date.js]]
}
// END PROJECT SPACE
// USER SPACE AND USER TALK SPACE
} else if ((mw.config.get('wgNamespaceNumber') === 2) || (mw.config.get('wgNamespaceNumber') === 3)) {
// AlertAssistant [[User:CanonNi/Scripts/AlertAssistant]] easily alerts users about contentious topics.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:CanonNi/Scripts/AlertAssistant.js&action=raw&ctype=text/javascript'); // [[User:CanonNi/Scripts/AlertAssistant.js]]
// ARB, the Arbritration Requests Buddy [[User:Bellezzasolo/Scripts/arb]]
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Bellezzasolo/Scripts/arb.js&action=raw&ctype=text/javascript'); // [[User:Bellezzasolo/Scripts/arb.js]]
// CVD (Copy-Violation Detector) [[User:Ahecht/Scripts/CVD]]
//var dupdet = true;
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ahecht/Scripts/CVD.js&action=raw&ctype=text/javascript'); // [[User:Ahecht/Scripts/CVD.js]]
// Draftify [[WP:DFY]]
Draftify = {};
Draftify.menulocation = "p-cactions";
Draftify.menuposition = "#ca-watch";
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Mr._Stradivarius/gadgets/Draftify.js&action=raw&ctype=text/javascript'); // [[User:Mr. Stradivarius/gadgets/Draftify.js]]
// edits-since-decline [[User:SD0001/edits-since-decline]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:SD0001/edits-since-decline.js&action=raw&ctype=text/javascript'); // [[User:SD0001/edits-since-decline.js]]
// GlobalUserToolbox [[User:Chlod/Scripts/GlobalUserToolbox]]
var gutOptions = {
"insert_at_top": false,
"ignore_existing": false,
"start_collapsed": false
};
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Chlod/Scripts/GlobalUserToolbox.js&action=raw&ctype=text/javascript'); // [[User:Chlod/Scripts/GlobalUserToolbox.js]]
// Help Me Tool
// mw.loader.load('//en.wikipedia.org/w/index.php?title=User:TheTechie/Help_Me_Tool.js&action=raw&ctype=text/javascript'); // [[User:TheTechie/Help Me Tool.js]]
// (Search own) Userspace
// mw.loader.load('//en.wikipedia.org/w/index.php?title=User:DannyS712/Userspace.js&action=raw&ctype=text/javascript'); // [[User:DannyS712/Userspace.js]]
// editCounter
//if (mw.config.get('wgTitle') === mw.config.get('wgUserName')) {
// mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Jeeputer/editCounter.js&action=raw&ctype=text/javascript'); // [[User:Jeeputer/editCounter.js]]
//}
// END USER SPACE AND USER TALK SPACE
// CATEGORIES
} else if (mw.config.get('wgNamespaceNumber') === 14) {
// coordInserter [[User:Jeeputer/coordInserter]] inserting Coord template on articles listed on Category:Articles missing coordinates with coordinates on Wikidata made easy. Conflicts with [[User:Alex 21/script-categorypagelinks.js]].
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Jeeputer/coordInserter.js&action=raw&ctype=text/javascript'); // [[User:Jeeputer/coordInserter.js]]
// categorypagelinks [[User:Alex 21/script-categorypagelinks]] adds individual Talk, Edit and History links to every article listed in a category. Conflicts with [[User:Jeeputer/coordInserter.js]].
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Alex_21/script-categorypagelinks.js&action=raw&ctype=text/javascript'); // [[User:Alex 21/script-categorypagelinks.js]]
// CategorySortKeys. Shows sort keys on category pages.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Nux/CategorySortKeys.js&action=raw&ctype=text/javascript'); // [[User:Nux/CategorySortKeys.js]]
// CategoryToClipboard [[User:Polygnotus/Scripts/CategoryToClipboard.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Polygnotus/Scripts/CategoryToClipboard.js&action=raw&ctype=text/javascript'); // [[User:Polygnotus/Scripts/CategoryToClipboard.js]]
// CatListMainTalkLinks [[User:Equazcion/CatListMainTalkLinks]], this and more done by User:Alex 21/script-categorypagelinks
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Equazcion/CatListMainTalkLinks.js&action=raw&ctype=text/javascript'); // [[User:Equazcion/CatListMainTalkLinks.js]]
// previewUserboxes
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:MusikAnimal/previewUserboxes.js&action=raw&ctype=text/javascript'); // [[User:MusikAnimal/previewUserboxes.js]]
// sockStaleness
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/sockStaleness.js&action=raw&ctype=text/javascript'); // [[User:Writ Keeper/Scripts/sockStaleness.js]]
// END CATEGORIES
// FILES
} else if (mw.config.get('wgNamespaceNumber') === 6) {
// LuckyRename
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Alexis_Jazz/LuckyRename.js&action=raw&ctype=text/javascript'); // [[User:Alexis Jazz/LuckyRename.js]]
// TinEye
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/TinEye.js&action=raw&ctype=text/javascript'); //[[meta:User:Krinkle/Scripts/TinEye]]
// END FILES
// TEMPLATES
} else if ((mw.config.get('wgNamespaceNumber') === 10) || (mw.config.get('wgNamespaceNumber') === 11)) {
// WatchDoc
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/WatchDoc.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/WatchDoc.js]]
// END TEMPLATES
} // END else if loop but remain in non-articles
// WP + TALK SPACES
if ((mw.config.get('wgNamespaceNumber') === 4) || (mw.config.get('wgNamespaceNumber')%2 === 1)) {
// COI Request Tool
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Terasail/COI_Request_Tool.js&action=raw&ctype=text/javascript'); // [[User:Terasail/COI Request Tool.js]]
// collapseBots
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Opencooper/collapseBots.js&action=raw&ctype=text/javascript'); // [[User:Opencooper/collapseBots.js]]
// Edit Request Tool
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Terasail/Edit_Request_Tool.js&action=raw&ctype=text/javascript'); // [[User:Terasail/Edit Request Tool.js]]
// editProtectedHelper, 2024-10-10: disabled, trying out Terasail/Edit Request Tool.js instead
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Jackmcbarn/editProtectedHelper.js&action=raw&ctype=text/javascript'); // [[User:Jackmcbarn/editProtectedHelper.js]]
// Move+ [[User:BilledMammal/Move%2B]] 2025-06-18: User:Polygnotus/Scripts/Tarnished.js instead per [[Special:Permalink/1295779363#User:BilledMammal/MovePlus.js and User:Frost/moveplus.js]]
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BilledMammal/MovePlus.js&action=raw&ctype=text/javascript'); // [[User:BilledMammal/MovePlus.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Polygnotus/Scripts/Tarnished.js&action=raw&ctype=text/javascript'); // [[User:Polygnotus/Scripts/Tarnished.js]]
// TimestampDiffs
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Evad37/TimestampDiffs.js&action=raw&ctype=text/javascript'); // [[User:Evad37/TimestampDiffs.js]]
// unsignedhelper [[User:Anomie/unsignedhelper]] 2025-06-18: disabled, using [[User:Andrybak/Scripts/Unsigned helper]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Anomie/unsignedhelper.js&action=raw&ctype=text/javascript'); // [[User:Anomie/unsignedhelper.js]]
// Unsigned helper [[User:Andrybak/Scripts/Unsigned helper]] 2025-06-18
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Andrybak/Scripts/Unsigned_helper.js&action=raw&ctype=text/javascript'); // [[User:Andrybak/Scripts/Unsigned_helper.js]]
// Unsigned generator [[User:Andrybak/Scripts/Unsigned generator]] 2025-06-18
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Andrybak/Scripts/Unsigned_generator.js&action=raw&ctype=text/javascript'); // [[User:Andrybak/Scripts/Unsigned_generator.js]]
} // END WP + TALK SPACES
} // END ANYWHERE BUT ARTICLES
} // END ENTIRE NOT SPECIAL LOOP
// MIXED
// CONTRIBS, HISTORY, RECENT CHANGES, WATCHLIST
if (mw.config.get('wgAction') === 'history' || mw.config.get('wgCanonicalSpecialPageName') === 'Contributions' || mw.config.get('wgCanonicalSpecialPageName') === 'Watchlist' || mw.config.get('wgCanonicalSpecialPageName') === 'Recentchanges') {
// Citation Watchlist
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Harej/citation-watchlist.js&action=raw&ctype=text/javascript'); // [[User:Harej/citation-watchlist.js]]
// commonHistory
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/commonHistory.js&action=raw&ctype=text/javascript'); // [[User:Writ Keeper/Scripts/commonHistory.js]]
// ExpandDiffs, works fine globally
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Bradv/Scripts/ExpandDiffs.js&action=raw&ctype=text/javascript'); // [[User:Bradv/Scripts/ExpandDiffs.js]]
} // END CONTRIBS, HISTORY, RECENT CHANGES, WATCHLIST
// CONTRIBS, HISTORY
if (mw.config.get('wgAction') === 'history' || mw.config.get('wgCanonicalSpecialPageName') === 'Contributions') {
// BlockedUserHistory ([[Special:Permalink/1256617564#Show only blocked users]])
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Novem_Linguae/Scripts/BlockedUserHistory.js&action=raw&ctype=text/javascript'); // [[User:Novem Linguae/Scripts/BlockedUserHistory.js]]
// diff-link
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Rublov/diff-link.js&action=raw&ctype=text/javascript'); // [[User:Rublov/diff-link.js]]
// DynaThank
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Equazcion/DynaThank.js&action=raw&ctype=text/javascript'); // [[User:Equazcion/DynaThank.js]]
// highlight my username in history
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Gary/highlight_my_username_in_history.js&action=raw&ctype=text/javascript'); // [[User:Gary/highlight my username in history.js]]
// historydiffselect
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Frietjes/historydiffselect.js&action=raw&ctype=text/javascript'); // [[User:Frietjes/historydiffselect.js]]
// HistoryView
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Yair_rand/HistoryView.js&action=raw&ctype=text/javascript'); // [[User:Yair rand/HistoryView.js]]
// minutes later for diff
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Gary/minutes_later_for_diff.js&action=raw&ctype=text/javascript'); // [[User:Gary/minutes later for diff.js]]
// MoveHistory
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Nardog/MoveHistory.js&action=raw&ctype=text/javascript'); // [[User:Nardog/MoveHistory.js]]
// responsiveHistoryCompare
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Fred_Gandt/responsiveHistoryCompare.js&action=raw&ctype=text/javascript'); // [[User:Fred Gandt/responsiveHistoryCompare.js]]
// userhist
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ale_jrb/Scripts/userhist.js&action=raw&ctype=text/javascript'); // [[User:Ale jrb/Scripts/userhist.js]]
} // END CONTRIBS, HISTORY
// DIFF ONLY, add diffOnly links everywhere but diff pages
if (mw.config.get('wgCanonicalSpecialPageName') != 'Contributions') {
/*
DiffOnly = {
history: true,
recentchanges: true,
watchlist: true,
diff: false
};
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Amorymeltzer/DiffOnly.js&action=raw&ctype=text/javascript'); // [[User:Amorymeltzer/DiffOnly.js]]
*/
} // END DIFF ONLY
// ID RELATED
if (mw.config.exists('wgRelevantUserName')) {
// IPLabeller
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Cumbril/IPLabeller.js&action=raw&ctype=text/javascript'); // [[User:Cumbril/IPLabeller.js]]
// statusCheck
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ale_jrb/Scripts/statusCheck.js&action=raw&ctype=text/javascript'); // [[User:Ale_jrb/Scripts/statusCheck.js]]
} // END ID RELATED