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--*/ 'use strict'; const fixes = [ {			condition: (mw.config.get('wgCanonicalSpecialPageName') === 'Whatlinkshere'), selector: '#mw-whatlinkshere-list > > [title^="NAMESPACE:"], #mw-whatlinkshere-list > > > > [title^="NAMESPACE:"]' },		{			condition: (mw.config.get('wgNamespaceNumber') === 6 && !(mw.config.get('wgIsRedirect'))), selector: '.mw-imagepage-linkstoimage [title^="NAMESPACE:"]' },		];	const namespaces = ['Thread', 'User blog comment']; fixes.forEach(function(fix) {		namespaces.forEach(function(namespace) { if (fix.condition) { const links = $(fix.selector.replaceAll("NAMESPACE", namespace)); if (links.length > 0) { links.each(function(_, link) {						link.innerHTML = link.title;					}); console.log('Fixed ' + links.length + ' link(s) to "' + namespace + '" namespace on current page.'); }			}		});	}); });
 * (function {