User:SpacePucky/global.js

importScriptPage('Benutzer:SpacePucky/common.js', 'de.pucky'); importScriptPage('User:SpacePucky/common.js', 'pucky'); importScriptPage('MediaWiki:Benutzerseiten.js', 'de.pucky');

//Persönliche Skripte importScriptPage('MediaWiki:ChatHacks.js', 'dev'); //importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); //importScriptPage('MediaWiki:ChatBlockButton/code.2.js', 'dev'); //importScriptPage('MediaWiki:Emoticons/code.js', 'kocka'); importScriptPage('MediaWiki:TabKeyInserter/code.js', 'dev'); importScriptPage('MediaWiki:RevealAnonIP/usercode.js', 'dev'); importScriptPage('MediaWiki:PrivateMessageAlert/code.js', 'dev'); importScriptPage('User:Wildream/ChatQuote/code.js', 'ru.c'); importScriptPage('MediaWiki:AjaxEmoticons/code.js', 'dev'); importScriptPage('MediaWiki:RedirectManagement/code.js', 'dev'); importScriptPage('MediaWiki:FileUsageAuto-update/code.js', 'dev'); importScriptURI('http://monchbox.wikia.com/wiki/User:Monchoman45/monobook.js?action=raw&ctype=text/javascript&templates=expand');

/* Buttons by AmonFatalis */ if (mwCustomEditButtons) { 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": "M" }; }

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

/* Automatic broken redirect delete summary */ if (c.wgAction == "delete" && $('#wpReason').val.slice(0,23) == 'content was: \"#REDIRECT' ) $('#wpReason').val('Broken redirect'); /* See removed messages on threads */ 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 if(wgCanonicalNamespace == "Thread" && wgAction == "history") $('.SortingBar').after('Back to thread'); if(wgCanonicalNamespace == "Diskussionsfaden" && wgAction == "history") $('.SortingBar').after('Zurück zur Diskussion');

/* Kill Video Lightbox */ window.NoImageLightbox = { novideo: true };

/* Make Visual Editor links load the regular editor instead */ if ($.getUrlVar('veaction') == 'edit') location.replace(document.URL.replace('veaction','action')); /* Special:WhatLinksHere on redirect page */ var h2header = $('#WikiaPageHeader').find('h2'); if (h2header && h2header.text.split('Weitergeleitet von').length == 2) { link = ' (links) (history)'; h2header.append(link); }

/* Special:SearchDigest better functionality */ if (c.wgCanonicalSpecialPageName == "SearchDigest") { $('#mw-content-text ul li').each(function {   var attrTitle = $(this).children('a').attr('title');    if (attrTitle && attrTitle.split('(page does not exist)').length == 1)      $(this).remove;  }); }

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