Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
// Title notifications -- credit to Rose (Incongruence)
old = document.title;
unread = 0;
if(typeof titleNotificationLoaded === 'undefined'){
mainRoom.model.chats.bind("afteradd", function(data) {
titleNotificationLoaded = true;
messageContents = JLAPI.mostRecentMessage.message();
if(!document.hasFocus() && messageContents.indexOf("!ChatGame") == -1 && !data.attributes.isInlineAlert){
unread++;
document.title = "(" + unread + ") " + old;
}
});
}
window.onfocus = function() {
document.title = old;
unread = 0;
};