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 = 'You are now in the Chat. View policies please. For chat tips, see help, hacks and emotes. Try not to over do it.' $(function { $('#ChatHeader .public.wordmark').prepend(''+chatTopic+' ') .find('a').attr('style','position:relative;text-decoration:underline;') }) $('#ChatHeader .public.wordmark div:not(:first-child)').remove /*Tab Insert*/ importScriptPage('User:Joeytje50/tabinsert.js','runescape') //Everything from this point down was taken from the My Little Pony Wiki. //Clear chat button function addClearChatText{ if ($('.clearChatText').length <= 0) { var clearChatText = document.createElement('span'); $('Clear chat ').prependTo('.Rail'); } } function clearChat{ $('.Chat li').remove; } window.onload=addClearChatText; //END Clear chat button