User:DarkBarbarian/global.js

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

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

//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    $('.wds-global-navigation__user-menu .wds-list > li:first').before('global.js');    //link to my RecentChangesMultiple    $('#WikiaBar .toolbar .tools').append('RCMultiple');    //UCP?    $(".wds-global-navigation__content-bar-left").after(' ' + (mw.config.get("wgVersion") !== "1.19.24" ? "UCP" : "Legacy") + ' ');

//User avatar links to profile $('.wds-dropdown.wds-global-navigation__user-menu.wds-has-shadow.wds-global-navigation__user-logged-in .wds-avatar').wrap($('', { href: mw.util.getUrl('User:' + mw.config.get('wgUserName')) }));

//Testwikis in global nav $('.wds-dropdown.wds-global-navigation__link-group span')[0].innerHTML = 'My Test Wikis'; $('.wds-dropdown.wds-global-navigation__link-group li').remove; $('.wds-dropdown.wds-global-navigation__link-group ul').append('darkbarbarian'); $('.wds-dropdown.wds-global-navigation__link-group ul').append('barbs-secret-tests</li>'); });

$(function backToFile {   if (wgCanonicalSpecialPageName !== "Upload") return;

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

//link to phalanxstats for phalanxed users $(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-changeslist-links > span:nth-child(1)').after(' | PhalanxStats</a> ');        } else {            setTimeout(__init, 500);        }    };    __init; });

//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('//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:FindAndReplace/code.js',		'u:dev:MediaWiki:ContribsLink/code.js',		//'u:dev:MediaWiki:SearchSuggest/code.js',		//'u:dev:MediaWiki:EditConflictAlert/code.js',		//'u:dev:MediaWiki:FileUsageAuto-update/code.js',		//'u:dev:MediaWiki:MultiUpload/code.js',		//'u:dev:MediaWiki:VanguardTools.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:!bang/code.js', 'u:dev:MediaWiki:InfoboxEditorPreview.js', //'u:dev:MediaWiki:PageRenameAuto-update/code.js', 'u:dev:MediaWiki:PowerDelete.js', 'u:dev:MediaWiki:DiscussionsRC.js', 'u:dev:MediaWiki:WHAM/code.2.js', 'u:dev:MediaWiki:AnalyticsShortcut.js', 'u:dev:MediaWiki:AjaxEditPreview.js', 'u:dev:MediaWiki:Discussions_Delete_All/code.js', 'u:dev:MediaWiki:Sofix.js' ] });