MediaWiki:Chat.js

$.getScript("https://raw.github.com/sactage/wikia-js-snippets/master/ChatOptions.js");

importScriptPage('ChatOptions/code.js', 'dev');

//Clear chat button function addClearChatText{ if ($('.clearChatText').length <= 0) { var clearChatText = document.createElement('span'); $('Clear window ').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