Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// 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('//en.wikipedia.org/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]]