Stable/ChatPlugins/Modules/afkButton.js

// AFK Button for ChatPlugins

//Unbind all of the window listeners that set your status to back $(window).unbind('mousemove').unbind('focus');

chatPlugins.cookie.arrays.afkLocation = []; if (typeof(chatPlugins.cookie.get("chatPluginsAfkLocation"))=="undefined") { chatPlugins.cookie.set("chatPluginsAfkLocation","menu"); chatPlugins.cookie.load; } else { chatPlugins.cookie.load; } //Add ChatPlugins button

if( !$("#afkButton").length ) { $("div.chattopic").append(' •  go afk '); }

//Go AFK when button clicked $("#afkButton").click(function {mainRoom.setAway});

console.log("[OPTIONS] afkButton: Loaded");