User:DarkBarbarian/global.js

//WHAM window.WHAMDelay = 100; window.WHAMDeleteReason = "cleanup";

//LastEdited window.lastEdited = { diffModal: false };

//PortableListUsers window.PortableListUsers = { time: 'local' };

//Standard_Edit_Summary window.dev = window.dev || {}; window.dev.editSummaries = { css: '#stdSummaries {width: -moz-available;}', select: [ '(Wählen)', 'Inhalt', [ 'typo', 'Korrektur', 'Ergänzung' ],       'Vandalismus/Spam', [ 'Reverting vandalism', 'Reverting spam', 'Spam entfernt', 'Vandalismus zurückgesetzt' ],   ] };

//FastDelete window.fdButtons = []; window.fdButtons.push({       summary: 'Nicht mehr benötigt',        label: 'NmB'    }, {        summary: 'Kein erkennbarer Mehrwert',        label: 'KeM'    }, {        summary: 'Bereits vorhanden',        label: 'Bv'    }, {        summary: 'Spam',        label: 'S'    }, {        summary: 'Löschantrag',        label: 'L'    }, {        summary: 'cleanup',        label: 'C'    } );

//QuickCreateUserPage window.qtEnableUserPageOverwrite = true;

$(function {   //global.js button in account menu    $('#global-navigation-user-signout').before('global.js');    //link to my RecentChangesMultiple    $('#WikiaBar .toolbar .tools').append('RCMultiple');

//User avatar links to profile $('.wds-avatar').wrap($('', { href: mw.util.getUrl('User:' + mw.config.get('wgUserName')) }));

//Testwikis in global nav $('div[data-tracking-label="link.wikis"] > .global-navigation__link-text')[0].innerHTML = 'Test Wikis'; $('div[data-tracking-label="link.wikis"] + .wds-dropdown__content li').remove; $('div[data-tracking-label="link.wikis"] + .wds-dropdown__content ul').append('darkbarbarian'); $('div[data-tracking-label="link.wikis"] + .wds-dropdown__content ul').append('barbs-secret-tests</li>'); });

//Back to file $(function backToFile {   if (wgCanonicalSpecialPageName !== "Upload") return;

var link = wgScriptPath + "/wiki/File:" +  document.getElementById('wpDestFile').value; $("div#uploadtext").before("<< Zurück zur Datei</a>"); });

//Back to AbuseFilter homepage $(function backToAF {   var posOfAFNumber = wgPageName.search(/\/[0-9]*$/);    if (posOfAFNumber === -1 || wgCanonicalSpecialPageName !== "AbuseFilter") return;    var localAFTitle = wgPageName.substring(0, posOfAFNumber);    var link = wgScriptPath +  "/wiki/" + localAFTitle;    $("div.page-header__subtitle").after(' < ' + localAFTitle + '</a>'); });

//add links to contribs $(function phalanxStatsLink {	if (wgCanonicalSpecialPageName !== 'Contributions') return;	//-> https://dev.fandom.com/wiki/MediaWiki:ProfileTags.js?oldid=142816	var __init = function {       if ($('.user-identity-box').length) {            var username = $('.user-identity-header__attributes h1[itemprop="name"]').text;			$('.mw-contributions-user-tools > .mw-changeslist-links > span:nth-child(1)').after(' | PhalanxStats</a> ');			$('.mw-contributions-user-tools > .mw-changeslist-links > span:nth-child(1)').after(' | CC</a> ');        } else {            setTimeout(__init, 500);        }    };    __init; });

//Notifcations open on hover $('.notifications > .wds-dropdown')[0].addEventListener('mouseover', function(e) {	$('.notifications > .wds-dropdown')[0].classList.add('wds-is-active');	mw.loader.using("skin.fandomdesktop.GlobalNavigationNotifications.js").then(function(e) { e("skin.fandomdesktop.GlobalNavigationNotifications.js").loadNotifications; }); }); $('.notifications > .wds-dropdown')[0].addEventListener('mouseout', function(e) {	$('.notifications > .wds-dropdown')[0].classList.remove('wds-is-active'); });

//Imported Codes mw.loader.load('//internal-soap.fandom.com/index.php?title=User:DarkBarbarian/scripts-ucp.js&action=raw&ctype=text/javascript'); //mw.loader.load('//helpers.fandom.com/index.php?title=User:DarkBarbarian/special.js&action=raw&ctype=text/javascript'); mw.loader.load('//helpers.fandom.com/index.php?title=User:机智的小鱼君/interwiki.js&action=raw&ctype=text/javascript'); mw.loader.load('//darkbarbarian.fandom.com/index.php?title=User:DarkBarbarian/AnchoredRollback.js&action=raw&ctype=text/javascript'); mw.loader.load('//darkbarbarian.fandom.com/index.php?title=User:DarkBarbarian/ShowUserGroupsFork.js&action=raw&ctype=text/javascript'); mw.loader.load('//darkbarbarian.fandom.com/index.php?title=User:DarkBarbarian/FormatUserPageCounts.js&action=raw&ctype=text/javascript');

importArticles({   type: 'script',    articles: [    	'u:dev:MediaWiki:AjaxRename/code.js',		'u:dev:MediaWiki:AjaxUndo/code.js',		'u:dev:MediaWiki:FastDelete/code.js',		'u:dev:MediaWiki:QuickDiff/code.js',		'u:dev:MediaWiki:LastEdited/code.js',		'u:dev:MediaWiki:PortableCSSPad/code.js',		'u:dev:MediaWiki:PurgeButton/code.js',		'u:dev:MediaWiki:RecentChangesMultiple/code.2.js',		//'u:dev:MediaWiki:RevealAnonIP/code.js',		'u:dev:MediaWiki:Standard_Edit_Summary/code.js',		'u:dev:MediaWiki:View_Source/code.js',		'u:dev:MediaWiki:Wikimarks/code.js',		//'u:dev:MediaWiki:EditConflictAlert/code.js',		//'u:dev:MediaWiki:FileUsageAuto-update/code.js',		'u:dev:MediaWiki:MultiUpload/code.js',		'u:dev:MediaWiki:QuickCreateUserPage/code.js',		'u:dev:MediaWiki:AjaxRedirect/code.js',		'u:dev:MediaWiki:PortableListUsers.js',		'u:dev:MediaWiki:Discussions_Delete_All/code.js',		//'u:dev:MediaWiki:AnchoredRollback/code.js', 'u:dev:MediaWiki:InfoboxEditorPreview.js', //'u:dev:MediaWiki:PageRenameAuto-update/code.js', 'u:dev:MediaWiki:PowerDelete.js', 'u:dev:MediaWiki:WHAM/code.2.js', 'u:dev:MediaWiki:AjaxEditPreview.js', 'u:dev:MediaWiki:Sofix.js', 'u:dev:MediaWiki:ProtectionIcons.js' ] });