User:DarkBarbarian/global.js

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

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

//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 {	var config = mw.config.get([ 'wgCanonicalSpecialPageName', 'wgScriptPath', 'wgUserName' ]);	//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:' + config.wgUserName) }));

//Testwikis in global nav $('div[data-tracking-label="link.wikis"] > .global-navigation__label')[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>');

//Notifcations open on hover $('.notifications > .wds-dropdown').mouseover(function {		mw.loader.using("skin.fandomdesktop.GlobalNavigationNotifications.js").then(function(e) { e("skin.fandomdesktop.GlobalNavigationNotifications.js").loadNotifications; $('.notifications > .wds-dropdown').mouseenter(function {				$('.notifications > .wds-dropdown').addClass('wds-is-active');			}).mouseleave(function {				$('.notifications > .wds-dropdown').removeClass('wds-is-active');			}); });	});	//Back to file if (config.wgCanonicalSpecialPageName === "Upload") { var link = config.wgScriptPath + "/wiki/File:" +  $('#wpDestFile').val; $("div#uploadtext").before("<< Zurück zur Datei</a>"); } });

//Imported Codes mw.loader.load('//internal-soap.fandom.com/index.php?title=User:DarkBarbarian/scripts.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: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', 'u:dev:MediaWiki:ThemeToggler.js', 'u:dev:MediaWiki:FileTools.js', 'u:dev:MediaWiki:CategoryQuickRemove.js', ] });