User:BryghtShadow/global.js

importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); //if (wgCanonicalNamespace == 'Chat') // importScriptPage("User:BryghtShadow/ChatTimetamps.js", "c");

/** Common Site Enhancements **/ importScriptPage('RevealAnonIP/code.js', 'dev');

/** Tools **/ importScriptPage('DupImageList/code.js', 'dev');

/** Site Enhancements **/ importScriptPage( 'SkinSwitchButton/code.js', 'dev' ); importScriptPage('PurgeButton/code.js', 'dev'); importScriptURI('http://dev.wikia.com/wiki/BotoneraPopups/Code/en.js?action=raw&ctype=text/javascript&templates=expand'); importStylesheetPage('BotoneraPopups/code.css', 'dev'); importScriptPage('PurgeButton/code.js', 'dev'); // Create if not exists if (!window.BotoneraPopups) { window.BotoneraPopups = {}; } // Change key binding for opening popup window.BotoneraPopups.displayOnKey = $.extend(true, window.BotoneraPopups.displayOnKey, {ctrlKey: false, altKey: false, shiftKey: true});

console.log(wgCanonicalNamespace == 'Chat' && typeof mainRoom !== 'undefined');

if (wgCanonicalNamespace == 'Chat' && typeof mainRoom !== 'undefined') { var quotes, index, now, irelia; mainRoom.inlineAlert("Irelia says hello!"); quotes = [ "My blade is at your service!", "There's no turning back.", "Cut them down.", "It ends here.", "This battle will be won.", "They will not prevail.", "This way.", "Justice guides us.", "I will not falter.", "With precision.", "Forge onward.", "Ionia shall not fall.", "I stand resolute.", "Stay sharp.", "True will cannot be defeated.", "You rely on your weapons too much, try letting go!", "Balance in all things.", "My blade is not only precise, but totally gnarly." ];	now = new Date; index = Math.floor((Math.random*quotes.length)); irelia = '' + '' + ' ' + now.getHours + ':' + now.getMinutes + ' ' + ' Irelia ' + ' ' + quotes[index] + ' ' + ''; $(".Chat ul").append( irelia ); alert(irelia); }