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

var interval = setInterval(function {	var comments = '.Reply, .Message, .Comment_body__Dw-zH, .Reply_body__PM9kM';	var attr = $(this).attr('data-user');	$(comments).not('[data-user]').each(function  { var user = $(this).find('.EntityHeader_name__PAxYW').text; $(this).attr('data-user', user); $(this).find('.wds-avatar__image').attr({				alt: user,				title: user			}); $(this).addClass('user-comment'); }); }, 100);