User:SpacePucky/global.js

anchoredRollbackBot = true; /* FastDelete */ window.fdButtons = []; window.fdButtons.push(   {        summary: 'Erfüllt nicht die Anforderungen für neue Artikel',        label: 'Anf.'    },    {        summary: 'Löschantrag',        label: 'Antrag'    },    {        summary: 'Nicht (mehr) benötigt',        label: 'NMB'    },    {        summary: 'Clean-up',        label: 'C'    } ); /* Importierte Skripte */ importArticles({   type: 'script',    articles: [    //DEV         'u:dev:MediaWiki:RecentChangesMultiple/code.2.js',         'u:dev:MediaWiki:AnchoredRollback/code.js',         'u:dev:MediaWiki:View_Source/code.js',         'u:dev:MediaWiki:WHAM/code.2.js',         'u:dev:MediaWiki:FastDelete/code.js',         'u:dev:MediaWiki:LastEdited/code.js',         'u:dev:MediaWiki:QuickCreateUserPage/code.js',         'u:dev:MediaWiki:DupImageList/code.js',         'u:dev:MediaWiki:PortableCSSPad/code.js',         'u:dev:MediaWiki:Wikimarks/code.js',         'u:dev:MediaWiki:SearchSuggest/code.js',         'u:dev:MediaWiki:AjaxBatchDelete/code.2.js',         'u:dev:MediaWiki:PurgeButton/code.js',         //'u:dev:MediaWiki:FileUsageAuto-update/code.js',         'u:dev:MediaWiki:RedirectManagement/code.js',         //'u:dev:MediaWiki:CategoryRenameAuto-update/code.js',         'u:dev:MediaWiki:DiscussionsFeed.js', 'u:dev:MediaWiki:SmoothGlobalNav/code.js', 'u:dev:MediaWiki:EditConflictAlert/code.js', 'u:dev:MediaWiki:Discussions_Delete_All/code.js' ] }); // RC-Button in global Nav (originally by User:AmonFatalis) var myUrl =       window.location.origin + encodeURI(mw.config.get('wgScript')) + "/Special:RecentChanges?hidebots=0"; $('Letzte Änderungen').appendTo('#globalNavigation'); var url = document.getElementById('RClink'); if (url) {    url.href = myUrl; } // Bypass Special:InfoboxBuilder by Nanaki if ($('.template-classification-type-text').data('type') == 'infobox') $('#ca-edit').attr('href', function(a) { return this.href + '&useeditor=source'; }); if (window.location.pathname.indexOf('InfoboxBuilder') != -1) {    var lname = window.location.pathname.split('InfoboxBuilder/')[1];     location.replace(document.URL.replace(window.location.href.split('/wiki/')[1],'Template:' + lname + '?action=edit&useeditor=source')); }

mw.loader.using('mediawiki.api').then(function{	if (mw.config.get('wgWikiaEnvironment') !== "sandbox") return;	if (mw.config.get('skin') === "fandomdesktop") return;	new mw.Api.saveOption('skin','fandomdesktop').then(function { location.reload; }); });

// FDD mw.loader.using('mediawiki.api').then(function{	if (mw.config.get('wgWikiaEnvironment') !== "sandbox") return;	if (mw.config.get('skin') === "fandomdesktop") return;	if (mw.config.get('wgCanonicalSpecialPageName') === "ThemeDesigner") return;	new mw.Api.saveOption('skin','fandomdesktop').then(function { location.reload; }); });