User:Swpb/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:Swpb/common.css. |
// Custom upper-right links
$.when( mw.loader.using('mediawiki.util'), $.ready ).then( function() {
mw.util.addPortletLink( 'p-personal', '/wiki/User:Swpb/home', '🏠 Private home', 'pt-home', 'Home', 's', '#pt-userpage');
mw.util.addPortletLink( 'p-personal', '//www.wikidata.org/wiki/Special:Watchlist', 'WD-Watchlist', 'pt-wd', 'Wikidata Watchlist', 'd', '#pt-mytalk');
// mw.util.addPortletLink( 'p-personal', '/wiki/User:Swpb/home/sub1', 'DEL', 'pt-del', 'Deletion tracking', 'd', '#pt-sandbox');
} );
// [[Wikipedia:Prosesize]]
mw.loader.load('//wiki.riteme.site/w/index.php?title=User%3ADr+pda%2Fprosesize.js&action=raw&ctype=text/javascript');
// Custom watchlists
/*
importScript( 'User:MusikAnimal/customWatchlists.js' ); // Backlink: [[User:MusikAnimal/customWatchlists.js]]
*/
// Deletion sorting - [[User:Enterprisey/delsort]]
importScript( 'User:APerson/delsort.js' ); // Backlink: [[User:APerson/delsort.js]]
//Option to hide navbox links on WhatLinksHere pages
if (mw.config.get('wgCanonicalSpecialPageName') == 'Whatlinkshere')
importScript('User:V111P/js/whatLinksHereLinkFilter.js'); // [[User:V111P/js/whatLinksHereLinkFilter.js]]
//DYKcheck tool
importScript('User:Shubinator/DYKcheck.js');
/** When action=purge is reached, automatically purge the page and then redirect to the actual page.
* Attempts to imitate the previous behavior for logged-in users. */
if ( mw.config.get( 'wgAction' ) === 'purge' ) {
$( 'form.visualClear' ).submit();
}
// [[Wikipedia:Nominations Viewer]] - summarizes nominations at FAC, FAR, FL, etc.
importScript('User:Gary/nominations viewer.js'); // [[Wikipedia:Nominations Viewer]]
// Short description Wikidata importer
importScript('User:Galobtter/Shortdesc helper.js'); // [[User:Galobtter/Shortdesc helper]]
// Source assess table generator!
//importScript('User:Abelmoschus Esculentus/SATG.js'); // Linkback: [[User:Abelmoschus Esculentus/SATG.js]]
importScript( 'User:DannyS712/SATG.js' );// [[User:DannyS712/SATG.js]]