// Wait for the DOM/page to finish loading
$( function() {
// Add link at top for Tools page
mw.loader.using( ['mediawiki.util'] ).done( function() {
mw.util.addPortletLink('p-personal', mw.util.getUrl('User:Jonesey95/Tools'), 'Tools', 'pt-mytools', 'Go to User:Jonesey95/Tools', null, '#pt-preferences');
});
/* Override annoying purge dialog */
if ( mw.config.get( 'wgAction' ) === 'purge' ) {
$('form.mw-htmlform').submit();
}
} );
//Script for processing edit-protected requests:
importScript('User:Jackmcbarn/editProtectedHelper.js'); // Linkback: [[User:Jackmcbarn/editProtectedHelper.js]]
// Sort search results. Linkback: [[User:PrimeHunter/Search sort.js]]
importScript('User:PrimeHunter/Search_sort.js');
//Show links that are in the source (a better version of What links here)
importScript('User:PrimeHunter/Source links.js'); // Linkback: [[User:PrimeHunter/Source links.js]]
//Button to show short descriptions for all articles in a category
importScript('User:SD0001/cat-all-shortdescs.js');
//Detect errors in Module:Political party
importScript('User:Frietjes/politicalparty.js');