Script Summary: helps you to get rid of those crappy repetive phrases which are stated over ond over by certain political associations ;)
This Script tries to find out where comments are listed and walks through them. It searches for phrases which are of no use – you have to configure this part yourself.
Yuo can define a bunch of phrases (in RegExp Format, btw) which are considered stupid / pointless / a waste of time and space / annoying ... – what so ever :)
As it tests the html source code, you can test gainst certain images and other html-relevant stuff. Therefor, in the most cases, a good understanding of RegularExpressions is required.
It is a good Idea to define whitespaces like so:
that is because in html you can have any kinds of white spaces in any amount, and it will be rendered as a singele white space -- I guess most of you aren't really surprised by this ;) by replacing white spaces with
\s+ any amount >0 of white spaces is matched.
Additionally, when matching special characters like äöü and such, consider the possibility that the html-source differs from what is displayed in the browser. Have a look at the page source when your phrases fail to match.
NB: this script is considered as the better wp-hidecomment!
Update will follow: Forum support (wbb3 for example)