User:E12Dragon/global.js

window.batchDeleteDelay = 500;

mw.config.set('UMFBypassLicenseCheck', true);

importArticles({   type: 'script',    articles: [		'u:dev:MediaWiki:NullEditButton/code.js',		'u:dev:MediaWiki:AjaxBatchDelete.js',		'u:dev:MediaWiki:PurgeButton/code.js',	    'u:dev:MediaWiki:WhatLinksHere/code.js',        'u:dev:MediaWiki:MultiUpload.js',        //'u:dev:MediaWiki:UploadMultipleFiles.js',        'u:dev:MediaWiki:QuickDiff/code.js',        'u:dev:MediaWiki:DisableCode/code.js',        'u:dev:MediaWiki:MassRename/code.js',    ] });

/*Nav buttons*/ $(function {	var sibling = '.wiki-tools.wds-button-group > a[data-tracking="discussions"]';	var config = mw.config.get([ 'wgScriptPath', 'wgUserGroups' ]);	var rc = '.wiki-tools.wds-button-group > a[data-tracking="recent-changes"]';	$(' ').insertAfter($(rc));	if (config.wgUserGroups.includes('sysop')) {		$(' ').insertAfter($(rc)); }	$('.wds-dropdown__content > .wds-list a[href="/wiki/Special:Upload"]').each(function{       $(this).attr('href', $(this).attr('href') + '?safemode=1');    }); });

/*Rollback conformation*/ $(function {	$('.mw-rollback-link a').click(function{ return confirm("Are you sure you want to rollback?"); }); });

/*Temp code to help delete broken redirects*/ $(function {	$('body.mw-special-BrokenRedirects ol > li').each(function  { var page = $(this).children('a:nth-child(3)').attr('href').split('/wiki/')[1]; $(this).text(page); }); });