MediaWiki:Chat.js

//Chat's topic. Remember to escape single quotes in the topic using \' to prevent this from breaking.

var chatTopic = 'Welcome to the Sonic News Network Chat! Please make sure to read the rules and other information  here .'

//Clear chat button function addClearChatText{ if ($('.clearChatText').length <= 0) { var clearChatText = document.createElement('span'); $('Clear chat ').prependTo('.Rail'); } } function clearChat{ chatSize = $('div.Chat:first ul li').size-1; $('.Chat:first li:lt('+chatSize+')').remove; } window.onload=addClearChatText; //END Clear chat button