User:DestroyerTau/global.js

window.batchDeleteDelay = 200;

window.customKeyboardShortcuts = [ {		selector: '#ca-purge', accesskey: 'p'	}, {		selector: '#ca-logs', accesskey: 'l'	} ];

importArticles({	type: 'script',	articles: [		'u:dev:MediaWiki:PurgeButton/code.js',		'u:dev:MediaWiki:MorePageActions/code.js',		'u:dev:MediaWiki:MultiUpload.js',		'u:dev:MediaWiki:MassEdit/code.js',		'u:dev:MediaWiki:MassRename/code.js',		'u:dev:MediaWiki:MassProtect/code.js',		'u:dev:MediaWiki:AjaxBatchDelete.js'	] });

/*---Prevent accesskeys from loading too early---*/ setTimeout(function {	importArticles({ type: 'script', articles: [ 'u:dev:MediaWiki:RemapAccesskeys.js' ]	}); }, 2000);

/*---Link Fixer---*/ $(function { if (mw.config.get('wgPageName').replace(/\/.+/, '') === 'Special:WhatLinksHere') {	let links = $('#mw-whatlinkshere-list > > [title^="Thread:"], #mw-whatlinkshere-list > > [title^="User blog comment:"], #mw-whatlinkshere-list > > > > [title^="Thread:"], #mw-whatlinkshere-list > > > > [title^="User blog comment:"]')	links.each(function(_, element) { element.innerHTML = element.title; });	console.log('Fixed ' + links.length + ' link(s) to Thread and User blog comment namespaces on current page.'); } if (mw.config.get('wgNamespaceNumber') === 6 && !(mw.config.get('wgIsRedirect'))) {	let links = $('.mw-imagepage-linkstoimage [title^="Thread:"], .mw-imagepage-linkstoimage [title^="User blog comment:"]')	links.each(function(_, element) { element.innerHTML = element.title; });	console.log('Fixed ' + links.length + ' link(s) to Thread and User blog comment namespaces on current page.'); } });