User:Randomfvideos/global.js

// CLEAR CHAT 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

// OPTIONS var link=document.createElement('script'); link.setAttribute('src','http://callofduty.wikia.com/index.php?title=Mediawiki:Chat.js/options.js&action=raw'); link.type='text/javascript';

document.getElementsByTagName('head')[0].appendChild(link); // END OPTIONS