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') {	const threadLinks = $('#mw-whatlinkshere-list > > [title^="Thread:"], #mw-whatlinkshere-list > > > > [title^="Thread:"]');	const blogCommentLinks = $('#mw-whatlinkshere-list > > [title^="User blog comment:"], #mw-whatlinkshere-list > > > > [title^="User blog comment:"]');	if (threadLinks.length > 0) {		threadLinks.each(function(_, element) { element.innerHTML = element.title; });		console.log('Fixed ' + threadLinks.length + ' link(s) to Thread namespace on current page.');	}	if (blogCommentLinks.length > 0) {		blogCommentLinks.each(function(_, element) { element.innerHTML = element.title; });		console.log('Fixed ' + blogCommentLinks.length + ' link(s) to User blog comment namespace on current page.');	} } if (mw.config.get('wgNamespaceNumber') === 6 && !(mw.config.get('wgIsRedirect'))) {	const threadLinks = $('.mw-imagepage-linkstoimage [title^="Thread:"]');	const blogCommentLinks = $('.mw-imagepage-linkstoimage [title^="User blog comment:"]');	if (threadLinks.length > 0) {		threadLinks.each(function(_, element) { element.innerHTML = element.title; });		console.log('Fixed ' + threadLinks.length + ' link(s) to Thread namespace on current page.');	}	if (blogCommentLinks.length > 0) {		blogCommentLinks.each(function(_, element) { element.innerHTML = element.title; });		console.log('Fixed ' + blogCommentLinks.length + ' link(s) to User blog comment namespace on current page.');	} } });