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'    },    {        summary: 'Vandalismus',        label: 'V'    },    {        summary: 'Spam',        label: 'S'    } );

//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', [ 'Vandalismus entfernt', 'Fehler korrigiert', 'Grammatik korrigiert', 'Formatierung/Layout korrigiert' ],       'General', [ 'Link(s) hinzugefügt/verändert/entfernt', 'Interwiki-Link(s) hinzugefügt/verändert/entfernt', 'Cleanup', 'Korrekturen', 'Formatierung', 'Grammatik', 'HTML &rarr; Wikitext', 'Layout', 'Antwort', 'Vorschlag', 'Aufgeräumt', 'Aktualisiert' ],       'Removal/Reversion', [ 'Vandalismus zurückgesetzt', 'Test-Edit zurückgesetzt', 'Urheberrechtsverletzung entfernt', 'Spam entfernt' ],       'Vorlagen', [ 'Vorlage(n) hinzugefügt/verändert/entfernt', 'Infobox(en) hinzugefügt/verändert/entfernt', ],       'Kategorien', [ 'Kategorie(en) hinzugefügt/verändert/entfernt', 'Creating Category page' ],       'Dateien', [ 'Bild(er) hinzugefügt', 'Bild(er) entfernt', 'Video(s) hinzugefügt', 'Datei(en) hinzugefügt/entfernt' ],       'EN', [ 'Reverted vandalism', 'Reverted test edit', 'Reverted vanity edit', 'Removed fanon', 'Removed libel/slander', 'Removed copyvio', 'Removed spam' ]   ] };

/* Importierte Skripte */ importArticles({   type: 'script',    articles: [    //Josephyr         //'u:josephhawk:User:Josephyr/filecleanup.js',    //kocka         //'u:kocka:MediaWiki:Emoticons/code.js',         'u:kocka:MediaWiki:AjaxCommentDelete/code.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:QuickIW/code.js',         'u:dev:MediaWiki:LastEdited/code.js',         'u:dev:MediaWiki:QuickToolsv2/code.js',         'u:dev:MediaWiki:AjaxUndo/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:MultiUpload/code.js',         'u:dev:MediaWiki:Wikimarks/code.js', 'u:dev:MediaWiki:NoImageLightbox/code.js', //'u:dev:MediaWiki:SearchSuggest/code.js', 'u:dev:MediaWiki:AutoEditDropdown/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:QuickThreads/code.js', 'u:dev:MediaWiki:Quick_Management/code.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:ViewRemovedAlways/code.js', //'u:dev:MediaWiki:CacheCheck/code.js', 'u:dev:MediaWiki:DiscussionsFeed.js', 'u:dev:MediaWiki:QuickCreateUserPage/code.js', //'u:dev:MediaWiki:QuickCreateMessageWallGreeting/code.js', 'u:dev:MediaWiki:AnchoredRollback/code.js', 'u:dev:MediaWiki:AjaxRC/code.js', 'u:dev:MediaWiki:FastDelete/code.js', 'u:dev:MediaWiki:PrivateMessageAlert/code.js', 'u:dev:MediaWiki:Standard_Edit_Summary/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" }; }

/* RC-Button in global Nav (by AmonFatalis) */ $('Letzte Änderungen').appendTo('#globalNavigation'); //$('.wds-global-navigation__start-a-wiki.wds-user-is-logged-in').attr('href','/wiki/Special:RecentChanges?hidebots=0').attr('title','Special:RecentChanges').text('Letzte Änderungen');

/* See removed messages on threads (by AmonFatalis) */ if ($('.removed-info.speech-bubble-message-removed').length && mw.config.get('wgCanonicalNamespace') == "Thread") { $('.removed-info.speech-bubble-message-removed').each(function {   var id = $(this).parent.attr('id');    $(this).append(' (see message)');  }); }

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