User:SpacePucky/global.js

PRAoptions = {editSummary: 'Automatic page link update'}; //var qtMessageWallGreetingTemplate = ''; var qtUserPageTemplate = ''; var qtEnableUserPageOverwrite = true;

/* Importierte Skripte */ importArticles({   type: 'script',    articles: [    //Josephyr         //'u:josephhawk:User:Josephyr/filecleanup.js',    //kocka         //'u:kocka:MediaWiki:Emoticons/code.js',    //runescpae         //'u:runescape:User:Joeytje50/tabinsert.js',    //COD         //'u:callofduty:MediaWiki:Chat.js/multipms.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:QuickComments/advanced.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:DifferentSkinEditor/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:ListFiles/code.js', 'u:dev:MediaWiki:DiscussionsFeed.js', 'u:dev:MediaWiki:QuickCreateUserPage/code.js', //'u:dev:MediaWiki:QuickCreateMessageWallGreeting/code.js' ] });

//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 }; importScriptPage('MediaWiki:PrivateMessageAlert/code.js', 'dev');

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

/* 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' ]   ] }; importArticles({ type: 'script', articles: [     'u:dev:Standard_Edit_Summary/code.js' ]});

/* AnchoredRollback */ anchoredRollbackBot = true; importScriptPage('MediaWiki:AnchoredRollback/code.js', 'dev');

/* 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'    } ); importScriptPage('MediaWiki:FastDelete/code.js', 'dev');

/* 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"]; importScriptPage('MediaWiki:AjaxRC/code.js', 'dev');

/* MassRename */ if (mw.config.get("wgUserGroups").indexOf('sysop') > -1) { massRenameDelay = 1000; massRenameSummary = 'Massenfix'; importScriptPage('MassRename/code.js', 'dev'); }

/* AjaxCommentDelete */ window.AjaxCommentDeleteConfig = {vocab:{linkText:"AjaxDelete"},fastDelete:"Clean-up"}; importScriptPage('MediaWiki:AjaxCommentDelete/code.js', 'kocka');

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

/* Automatic broken redirect delete summary (by AmonFatalis) */ if (c.wgAction == "delete" && $('#wpReason').val.slice(0,23) == 'content was: \"#REDIRECT' ) $('#wpReason').val('Broken redirect'); /* 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)');  }); }

/* Thread history return to thread (by AmonFatalis) */ if(wgCanonicalNamespace == "Thread" && wgAction == "history") $('.SortingBar').after('Back to thread'); if(wgCanonicalNamespace == "Diskussionsfaden" && wgAction == "history") $('.SortingBar').after('Zurück zur Diskussion');

/* Add history button to diffs (by AmonFatalis) */ if ($('strong:contains("Changes:")').length) $('#WikiaPageHeader').find('p').children('a').after(' (history)');

/* Special:WhatLinksHere on redirect page (by AmonFatalis) */ var h2header = $('#WikiaPageHeader').find('h2'); if (h2header && h2header.text.split('Weitergeleitet von').length == 2) { link = ' (links) (history)'; h2header.append(link); }

/* Add “poweruser” to Special:ListUsers (by User:452) */ if (wgPageName=="Spezial:Benutzer") $("fieldset.lu_fieldset tr:last-child").prepend(' <input type="checkbox" name="lu_target" class="lu_target" value="poweruser" checked="checked" id="checkBoxForpoweruser"> Powerusers ');

/* Show abuse log entries in Special:Log/newusers */ if ("Special:Log/newusers".indexOf(c.wgPageName) !== -1) { $('li.mw-logline-newusers').each(function {   href = '/wiki/Special:AbuseLog?wpSearchUser=' + $(this).children('a.new.mw-userlink,a.mw-userlink').attr('href').substring(11),    link = ' | abuse</a>';    $(this).children('span.mw-usertoollinks').find('a:last-child').after(link);  }); }