User:E12Dragon/global.js

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:QuickDiff/code.js',        'u:dev:MediaWiki:DisableCode/code.js',        'u:dev:MediaWiki:AjaxBatchDelete.js',    ] }); /*Upload buttons*/ $(function {	var sibling = '.wiki-tools.wds-button-group > a[data-tracking="discussions"]';	var site = mw.config.get("wgScriptPath");	var rc = '.wiki-tools.wds-button-group > a[data-tracking="recent-changes"]';	$(' ').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?"); }); });