Board Thread:Support Requests - Getting Technical/@comment-26009167-20150223134640/@comment-26009167-20150223140944

Ah, ok. On that note, would you mind helping me debug a small bit of code that doesn't seem to be executing properly, one that's also meant for chat?

/** * Clear chat */ function addClearChatText { "use strict"; if ($('.clearChatText').length <= 0) { var clearChatText = document.createElement('span'); $('Clear chat ').prependTo('.Rail'); } }

function clearChat { "use strict"; var chatSize = $('div.Chat:first ul li').size - 1; $('.Chat:first li:lt(' + chatSize + ')').remove; }

window.onload = addClearChatText;

I've tested the functions for adding the button and for actually using the button, and both are working, but it doesn't seem like  is being executed? It used to work using the same exact code before... Nevermind, I just decided to remove it.