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 Call of Duty Wiki chat. Rules and more information can be found  here . FAQs  here . Fill out the Chat questionnaire  here!   Chat statistics ' $(function {	$('#ChatHeader .public.wordmark').prepend(''+chatTopic+' ')	.find('a').attr('style','position:relative;text-decoration:underline;') }) $('#ChatHeader .public.wordmark div:not(:first-child)').remove

// END Chat topic

// Clear chat button

function addClearChatText{ if ($('.clearChatText').length <= 0) { $('Clear chat ').prependTo('.chattopic'); } } function clearChat{ chatSize = $('div.Chat:first ul li').size-1; $('.Chat:first li:lt('+chatSize+')').remove; } window.onload=addClearChatText

// END Clear chat button