User:SpacePucky/global.js

importScriptPage('Benutzer:SpacePucky/common.js', 'de.pucky'); importScriptPage('Benutzer:SpacePucky/wikia.js', 'de.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'); 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" }; }

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

/* Zusammenfassung.js */ window.dev = window.dev || {}; window.dev.editSummaries = { css: false, select: [ '(Wählen)', 'Standard', [ 'typo', 'Korrektur', 'Ergänzung', ],       'Aufräumen', [ 'cleanup', 'Löschantrag', 'Dublikat', 'Doppelte Weiterleitung repariert', 'Kaputte Weiterleitung repariert' ],       'Vandalismus/Spam EN', [ 'Reverting vandalism', 'Reverting Spam', 'ToU Violation' ],       'Vandalismus/Spam DE', [ 'Spam', 'Vandalismus' ]   ] }; importScriptPage("MediaWiki:Standard_Edit_Summary/code.js", "dev");