User:E12Dragon/global.js

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

importArticles({   type: 'script',    articles: [		'u:dev:MediaWiki:NullEditButton/code.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'    ] });

/*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?"); }); });