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});

if(wgCanonicalSpecialPageName == 'Chat') { $(function {		if(!importScriptURI) {function importScriptURI(a){var b=document.createElement("script");b.setAttribute("src",a);b.setAttribute("type","text/javascript");document.getElementsByTagName("head")[0].appendChild(b);return b}}		importScriptURI('http://leagueoflegends.wikia.com/index.php?title=User:BryghtShadow/ChatGreeting.js&action=raw&ctype=text/javascript');	});

//Away status functions NodeChatController.prototype.setAway = function (msg){ if(!msg) {var msg = '';} $.log("Attempting to go away with message: " + msg); var setStatusCommand = new models.SetStatusCommand({			statusState: STATUS_STATE_AWAY,			statusMessage: msg		}); //this.inlineAlert(i18n['away']); this.socket.send(setStatusCommand.xport); }	NodeChatController.prototype.setBack = function { if( !this.comingBackFromAway ) { // if we have sent this command (but just haven't finished coming back yet), don't keep spamming the server w/this command $.log("Telling the server that I'm back."); this.comingBackFromAway = true; var setStatusCommand = new models.SetStatusCommand({				statusState: STATUS_STATE_PRESENT,				statusMessage: ''			}); //	this.inlineAlert(i18n['back']); this.socket.send(setStatusCommand.xport); }	} } else { }