You seem to simply be scanning the DOM for keywords. The first site I happened to try contained the word "gay" in one of the headlines, and surely enough
http://wikipedia.org/wiki/Gay is also blocked. Doing this on the client side through javascript seems hopeless btw.