User:SpacePucky/global.js

PRAoptions = {editSummary: 'Automatic page link update'};

window.AjaxCommentDeleteConfig = {vocab:{linkText:"AjaxDelete"},fastDelete:"Clean-up"};

//var qtMessageWallGreetingTemplate = ''; var qtUserPageTemplate = ''; var qtEnableUserPageOverwrite = true;

anchoredRollbackBot = true;

/* Anpassungen für AjaxRC */ window.ajaxRefresh = 30000; window.ajaxPages = ["Special:RecentChanges","Special:WikiActivity","Special:Watchlist","Special:Log","Special:Contributions","Spezial:Letzte_Änderungen","Spezial:WikiActivity" ,"Spezial:Beiträge"];

/* 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'    } );

//PN-Benachrichtigungen var PrivateMessageAlert = { beepSound: 'http://vignette3.wikia.nocookie.net/pucky/images/6/65/Pling.ogg/revision/latest?cb=20160714160044&path-prefix=de', message: '$1', notifications: false, alertWhileFocused: false };

/* Standard Edit Summary Settings */ window.dev = window.dev || {}; window.dev.editSummaries = { select: [ '(Klicken...)', 'Quick', [ 'Format', 'Vandalismus entfernt', 'Cleanup', 'Korrektur' ],       'Removal/Reversion', [ 'Vandalismus zurückgesetzt', 'Test-Edit zurückgesetzt', 'Urheberrechtsverletzung entfernt', 'Spam entfernt' ],       'EN', [ 'Reverted vandalism', 'Reverted test edit', 'Removed spam' ]   ] };

/* Importierte Skripte */ importArticles({   type: 'script',    articles: [    //Josephyr         //'u:josephhawk:User:Josephyr/filecleanup.js',    //DisneyDE         //'u:de.disney:MediaWiki:Gadget-HotCat.js',    //DEV         'u:dev:MediaWiki:ChatHacks.js',         'u:dev:MediaWiki:RecentChangesMultiple/code.2.js',         'u:dev:MediaWiki:AnchoredRollback/code.js',         'u:dev:MediaWiki:FastDelete/code.js',         'u:dev:MediaWiki:LastEdited/code.js',         'u:dev:MediaWiki:QuickCreateUserPage/code.js',         'u:dev:MediaWiki:QuickIW/code.js',         'u:dev:MediaWiki:QuickToolsv2/code.js',         'u:dev:MediaWiki:AjaxUndo/code.js',         'u:dev:MediaWiki:AjaxCommentDelete/code.js',         'u:dev:MediaWiki:DupImageList/code.js',         'u:dev:MediaWiki:PortableCSSPad/code.js',         'u:dev:MediaWiki:Thread_Inspection/code.js',         'u:dev:MediaWiki:AjaxDiff/code.js',         'u:dev:MediaWiki:View_Source/code.js', 'u:dev:MediaWiki:ViewRemoved/code.js', 'u:dev:MediaWiki:MultiUpload/code.js', 'u:dev:MediaWiki:Wikimarks/code.js', 'u:dev:MediaWiki:NoImageLightbox/code.js', 'u:dev:MediaWiki:SearchSuggest/code.js', 'u:dev:MediaWiki:AjaxBatchDelete/code.2.js', 'u:dev:MediaWiki:AjaxPatrol/code.js', 'u:dev:MediaWiki:PurgeButton/code.js', 'u:dev:MediaWiki:WHAM/code.2.js', 'u:dev:MediaWiki:FileUsageAuto-update/code.js', //'u:dev:MediaWiki:QuickDelete/code.js', 'u:dev:MediaWiki:MobileEditor.js', 'u:dev:MediaWiki:RevealAnonIP/code.js', //'u:dev:MediaWiki:QuickLogs/code.js', 'u:dev:MediaWiki:RedirectManagement/code.js', 'u:dev:MediaWiki:PageRenameAuto-update/code.js', 'u:dev:MediaWiki:CategoryRenameAuto-update/code.js', //'u:dev:MediaWiki:QQX/code.js', 'u:dev:MediaWiki:DiscussionsFeed.js', //'u:dev:MediaWiki:QuickCreateMessageWallGreeting/code.js', 'u:dev:MediaWiki:AjaxRC/code.js', 'u:dev:MediaWiki:PrivateMessageAlert/code.js', 'u:dev:MediaWiki:Standard_Edit_Summary/code.js', 'u:dev:MediaWiki:SmoothGlobalNav/code.js', 'u:dev:FixWantedFiles/code.js', 'u:dev:MediaWiki:PageFormatter/code.js', 'u:dev:MediaWiki:FileLogs.js', 'u:dev:MediaWiki:UnhideUserMasthead/code.js', 'u:dev:MediaWiki:EditConflictAlert/code.js' ] });

/* Buttons by AmonFatalis */ if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png", "speedTip": "Adoption", "tagOpen": "" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png", "speedTip": "Magic", "tagOpen": "__", "tagClose": "__", "sampleText": "NOEDITSECTION" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png", "speedTip": "Weiterleitung", "tagOpen": "#REDIRECT ",   "tagClose": "", "sampleText": "R" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png", "speedTip": "Anführungszeichen", "tagOpen": "„", "tagClose": "“", "sampleText": "T" }; }

// Add RC link in global nav (by AmonFatalis) //$('body').append('Recentchanges'); //$('.rcdiv').attr('href', blorp + 'Special:RecentChanges');

/* RC-Button in global Nav (by AmonFatalis) */ if (mw.config.get("wgPageContentLanguage") == "de") { $('Letzte Änderungen').appendTo('#globalNavigation'); } if (mw.config.get("wgPageContentLanguage") == "en") { $('Letzte Änderungen').appendTo('#globalNavigation'); }

if (window.location.pathname.indexOf('Spezial:InfoboxBuilder') != -1) { var name = window.location.pathname.split('Spezial:InfoboxBuilder/')[1]; location.replace(document.URL.replace(window.location.href.split('/wiki/')[1],'Vorlage:'+name+'?action=edit&useeditor=source')); } if (window.location.pathname.indexOf('Special:InfoboxBuilder') != -1) { var name = window.location.pathname.split('Special:InfoboxBuilder/')[1]; location.replace(document.URL.replace(window.location.href.split('/wiki/')[1],'Template:'+name+'?action=edit&useeditor=source')); }