MediaWiki:Chat.js

/*Courtesy of the Runescape Wiki*/ //Chat's topic. Remember to escape single quotes in the topic using \' to prevent this from breaking. var chatTopic = 'STUDENTS: Please read The Rules before chatting.' $(function { $('#ChatHeader .public.wordmark').prepend(''+chatTopic+' ') .find('a').attr('style','position:relative;text-decoration:underline;') }) $('#ChatHeader .public.wordmark div:not(:first-child)').remove /* Creating /me command */ document.getElementsByName('message')[0].onkeypress = function(e) { if (e.which == 32) { if (this.value == '/me') { this.value = '* '+wgUserName; } } } /*Tab Insert*/ importScriptPage('User:Joeytje50/tabinsert.js','runescape')

/*Mark admins*/ setInterval(function {	$('#Rail .User.chat-mod:not(.admin) .username').each(function { if (!this.innerHTML.match(/LeonSkunk|Gumballamiyumi|CoreyBandicootfan1\^ \^|Globaluna32|Randomced859|Mariomariox2|WhatIAm|Denmax|Stickventures2|InvaderrrZIM/)) { $(this).parent.addClass('admin');