MediaWiki:Chat.js

// Additional buttons function addButtons{ if ($('.clearChatText').length == 0) { $('Clear Your Window Set Away ').prependTo('.Rail'); } } function clearChat{ chatSize = $('div.Chat:first ul li').size-1; $('.Chat:first li:lt('+chatSize+')').remove; }

// Taken from Monchoman45's Chat Hacks function toggleAway(msg) { if(!msg) {var msg = '';} if($('#ChatHeader .User').hasClass('away') == true) { mainRoom.setBack; }	else { mainRoom.setAway(msg); } } window.onload=addButtons;