MediaWiki:Chat.js

// Chat Hacks importScriptPage('MediaWiki:ChatHacks.js'); // End Chat Hacks

// Multi User PMs importScriptPage('MediaWiki:ChatPMs.js'); // End Multi User PMs

$('#ChatHeader .public.wordmark div:not(:first-child)').remove //Chat buttons function addClearChatText{ if ($('.clearChatText').length <= 0) { var clearChatText = document.createElement('span'); $('Clear chat ').appendTo('#ChatHeader'); } } function addAfkText{ if ($('.afkText').length <= 0) { var afkText = document.createElement('span'); $('Toggle Away ').appendTo('#ChatHeader'); } } function clearChat{ chatSize = $('div.Chat:first ul li').size-1; $('.Chat:first li:lt('+chatSize+')').remove; } window.onload=addClearChatText; window.onload=addAfkText; //END Clear chat button