User:Dzylon-fduser/global.js

// IMPORTS importScriptPage('Mediawiki:FindReplace.js','kangaroopower'); importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('User:Joeyaa/wham.js', 'vstf'); importScriptPage('NoImageLightbox/code.js', 'dev');

// EDITOR BUTTONS if ( mwCustomEditButtons ) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images4.wikia.nocookie.net/statequartersprogram/images/0/06/Tb.png", "speedTip": "Talkback", "tagOpen": "==Re:", "tagClose": "==\r", "sampleText": "" };   mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/statequartersprogram/images/a/a3/Gallery.png", "speedTip": "Gallery", "tagOpen": "==Gallery==\r", "sampleText": "" };   mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images3.wikia.nocookie.net/statequartersprogram/images/e/e2/Ri.png", "speedTip": "Reset Indent", "tagOpen": "┌─────", "tagClose": "─────┘", "sampleText": "" }; }

// FAST DELETE importScriptPage('FastDelete/code.js', 'dev'); var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'Housekeeping', 'label': 'd' };

/* Chat blackout if (mw.config.get('wgPageName') === 'Special:Chat') { $(function {        var blackoutCounter = 0;        function blackout {            if (blackoutCounter === 0) {                var blackoutStyle = document.createElement("style");                blackoutStyle.setAttribute("id", "blackoutStyle");                blackoutStyle.innerHTML = "* { background-color: black !important; color: white !important; }";                document.head.appendChild(blackoutStyle);                blackoutCounter++;            } else {                var blackoutStyle = document.getElementById("blackoutStyle")                blackoutStyle.parentNode.removeChild(blackoutStyle);                 blackoutCounter--;            }        }
 * I know, I know, this is absolutely terrible, but it's for personal use */

$('.public.wordmark > a').after(" "); $('#blackout').on("click", blackout); }); }