User:DarkBarbarian/global.js

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

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

//Sofix window.Sofix = { enablePersonalUse: true };

//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: 'Löschantrag',		label: 'L'	}, {		summary: 'spam',		label: 'S'	}, {		summary: 'vandalism',		label: 'V'	}, {		summary: 'cleanup',		label: 'C'	} );

//global.js button in account menu $('#global-navigation-user-signout').before('global.js');

//link to my RecentChangesMultiple $('#WikiaBar .toolbar .tools').append('RCMultiple');

//useful links $('#my-tools-menu').append(' [SPAM] NewWikis'); $('#my-tools-menu').append(' [SPAM] CC RC');

//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__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</a></li>'); $('div[data-tracking-label="link.wikis"] + .wds-dropdown__content ul').append('barbs-secret-tests</a></li>'); $('div[data-tracking-label="link.wikis"] + .wds-dropdown__content ul').append('wildbot-6</a></li>');

//Notifications open on hover $('.wds-dropdown__toggle.notifications__toggle').mouseover(function(e) {	this.click;	setTimeout(function { $('.notifications > .wds-dropdown').hover(function {			$('.notifications > .wds-dropdown').addClass('wds-is-active');		}, function {			$('.notifications > .wds-dropdown').removeClass('wds-is-active');		}); }, 1000); });

//Open out categories at the bottom of the page $('.wds-collapsible-panel.page-footer__categories').removeClass('wds-is-collapsed');

//Back to file if (mw.config.get('wgCanonicalSpecialPageName') === "Upload") { var link = mw.config.get('wgScriptPath') + "/wiki/File:" +  $('#wpDestFile').val; $("div#uploadtext").before("<< Zurück zur Datei</a>"); }

//Modern2010Editor - fix for summary being at the bottom on talk pages if (window.location.search.search('section=new') !== -1) { $("#wpSummaryLabel").detach.prependTo(".editOptions"); }

//Fix twitter links in user mastheads setTimeout(function {	$('.user-identity-social__icon').attr('href', function(index, attr) { if (index > 0) return attr; if (attr.indexOf("twitter.com", 1) == -1) return attr; return attr.slice(0, "https://twitter.com".length) + attr.slice(attr.lastIndexOf("/")); }); }, 500);

//Prevent editor to jump to the curser when pressing Shift or Control keys if ($('#editform').length) { $('#editform').get(0).addEventListener('keydown', function(e) {		if(e.key == 'Shift' || e.key == 'Control') {			e.stopPropagation;		}	}, true); }

//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:UploadMultipleFiles.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:ThemeToggler.js', 'u:dev:MediaWiki:FileTools.js', 'u:dev:MediaWiki:CategoryQuickRemove.js', 'u:dev:MediaWiki:DiscussionsViewer.js', ] });