User:DestroyerTau/global.js

window.batchDeleteDelay = 200;

window.customKeyboardShortcuts = [ {		selector: '#ca-purge', accesskey: 'p'	}, {		selector: '#ca-info', accesskey: 'i'	}, {		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',		'u:dev:MediaWiki:QuickDiff/code.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') === 'Allpages'), selector: '.mw-allpages-body [title^="NAMESPACE:"]' },		{			condition: (mw.config.get('wgCanonicalSpecialPageName') === 'Log'), selector: '.mw-logevent-loglines [title^="NAMESPACE:"]' },		{			condition: (mw.config.get('wgCanonicalSpecialPageName') === 'Recentchanges'), selector: '.mw-changeslist [title^="NAMESPACE:"]' },		{			condition: (mw.config.get('wgCanonicalSpecialPageName') === 'Whatlinkshere'), selector: '#mw-whatlinkshere-list [title^="NAMESPACE:"]' },		{			condition: (mw.config.get('wgNamespaceNumber') === 6 && !(mw.config.get('wgIsRedirect'))), selector: '.mw-imagepage-linkstoimage [title^="NAMESPACE:"]' }		];	const namespaces = ['User blog comment', 'Thread', 'Message Wall Greeting', 'Board', 'Board Thread']; fixes.forEach(function(fix) {		namespaces.forEach(function(namespace) { if (fix.condition) { const links = $(fix.selector.replaceAll('NAMESPACE', namespace)); links.each(function(_, link) {						if (link.innerHTML === '') {							link.innerHTML = link.title;						} else {							links.length -= 1;						}					}); if (links.length > 0) { console.log('Fixed ' + links.length + ' link(s) to "' + namespace + '" namespace on current page.'); }			}		});	}); });
 * (function {