MediaWiki:Chat.js

// Credit to Runescape Wiki //Chat's topic. Remember to escape single quotes in the topic using \' to prevent this from breaking. var chatTopic = ' Welcome to the Whale Empire Network! Guidelines • Emotes • Admins  = $(function {	$('#ChatHeader .public.wordmark').prepend(''+chatTopic+' ')	.find('a').attr('style','position:relative;text-decoration:none;') }) $('#ChatHeader .public.wordmark div:not(:first-child)').remove // END Chat topic // ************ // Chat options import // ************ // Written by Sactage, Callofduty4 and Madnessfan34537 var chatOptionsLoaded = false; if (!chatOptionsLoaded){ chatOptionsLoaded = true; importScriptPage('Chat/Options.js','scripts'); $('#chatOptionsButton').remove $('#chat-options-button').appendTo("#ChatHeader").css({'right' : '155px', 'bottom' : 0, 'position' : 'absolute', 'cursor' : 'pointer'}); } // **************** // END Chat options import // **************** // load chat options stylesheet importStylesheetPage('Chat/Chat.css', 'scripts'); // end load chat options stylsheet /*Mark admins*/ // Written by administrators of the Runescape wiki, who also kindly gave permission for use. setInterval(function {	$('#Rail .User.chat-mod:not(.admin) .username').each(function { if (!this.innerHTML.match(/1hs444|Spartacus0898/)) { $(this).parent.addClass('admin'); } else { $(this).parent.addClass('bot'); }		}	}); }, 1000)