User:Dragon Rainbow/global.js

/* Buttons */ if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://static2.wikia.nocookie.net/monsterhunternews/de/images/d/d3/Button_Weiterleitung.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" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png", "speedTip": "Magic", "tagOpen": "__", "tagClose": "__", "sampleText": "NOEDITSECTION" }; } /* chat hacks */ importScriptPage('User:Monchoman45/ChatHacks.js', 'c');

//Persönliche Styles importScriptPage('Benutzer:Dragon Rainbow/Styles.js', 'de.rain');

//Hacks importScriptPage('Benutzer:Dragon Rainbow/hacks.js', 'de.rain');

//ChatQuotes importScriptPage('User:Wildream/ChatQuote/code.js', 'ru.c');

//Persönliche Skripte importScriptPage('Benutzer:Dragon Rainbow/scripts.js', 'de.rain');

/* Chat-Pings */ if (wgCanonicalSpecialPageName == "Chat") { var sfNotifications = {}; sfNotifications.options = { audio: 'http://images.wikia.com/monchbox/images/0/01/Beep-sound.ogg', caseInsensitive: true, highlight: true, highlightColor: 'red', notification: true, ping: true, pings: ["Dragon Rainbow", "Dragon", "Rain", "Rainbow", "Admin", "rain"], regex: false, window: false };   importScriptPage("ChatNotifications/code.js", "dev"); }

//Zusammenfassungen //importScriptPage("MediaWiki:Zusammenfassungen.js", "de.rain");

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

//Schnelles Erstellen der Benutzerseiten importScriptPage('MediaWiki:Benutzerseiten.js', 'de.rain');

//Skripte (die notwendigsten) importScriptPage('MediaWiki:Scripts.js', 'de.rain');

//Hide Rail importScriptPage('MediaWiki:HideRail/code.js', 'dev');

// Redirect management importScriptPage('MediaWiki:RedirectManagement/code.js', 'dev');

//SkinSwitch importScriptPage('MediaWiki:SkinSwitchButton/code.js', 'dev');

//OldFilePages OFPoptions = {'showlinks': true}; importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:OldFilePages/code.js'    ] });

//NoImageLightbox window.NoImageLightbox = { novideo: true }; importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:NoImageLightbox/code.js',        //'u:a:MediaWiki:Gadget-HotCat.js'    ] });

/* RC link in global nav by User:AmonFatalis */ $('Letzte Änderungen').appendTo('.global-navigation-container');

//Alle XY löschen importScriptPage('MediaWiki:MultipleFileDelete/code.js', 'dev');

//Finden und Ersetzen importScriptPage('MediaWiki:FindAndReplace/code.js', 'dev');

/* Stuff written by @Bobogoobo */ // Add "infinite" value to expiry dropdowns (another thing that should be built-in) $('#mw-input-wpExpiry option:last').before(   $(' ', { 'value':'infinite', 'text':'infinite' }) ); //Highlight whitespace characters in diffs when they're the only thing in the change //Winner of most conspicuous missing feature for five consecutive years if (window.location.href.indexOf('diff=') !== -1) { $('.diffchange-inline').each(function {       if (!(new RegExp('\\S+').test($(this).text))) {            $(this).css('background-color', 'red');        }    }); } //end