jpgohlke/twitch-chat-filter — pull request #31 by feha (2014-02-23 04:29:53+00:00)
Title: colored @username, url duplicate filter, one-word filter, buttons

Fixed the problems I had with url duplicates... mostly. 'Surprisingly' the no-space sentences fixed themselves when I decided that urls are identical if their '.com/path?query=' are identical (skip last query value, and whats before the last '.' to ensure that what is between the url's doesnt matter).

I would doubt that performance really is a problem for a chat like this, but if it is, the regexp should be possible to shorten by removing the parts that is outside its paranthesis. Moving the url check further down the spam function should probably also improve performance, since the heavy regexp stuff is currently the first stuff that is done.
Performance *does* seem to have been affected when the script loads and a few hundred messages already been received.

Also made sure that the change from commit #81 was added, although I did that manually because I'm not very used to giyhub yet and couldnt figure out how to update a fork.