Re: How I got rid of those spam posts on c.l.t



On Apr 22, 1:23 am, "Kam-Hung Soh" <kamhung....@xxxxxxxxx> wrote:
On Tue, 22 Apr 2008 07:30:59 +1000, Alexandre Ferrieux



<alexandre.ferri...@xxxxxxxxx> wrote:
Hi,

If like me you are using Google Groups with Firefox, and are suffering
from the huge amount of spam posts, maybe you'll like this little
trick: use the fabulous Firefox extension "GreaseMonkey", which is a
generic filter allowing to run arbitrary Javascript code (possibly
modifying the contents) after loading webpages.

Using the GreaseMonkey script located at

http://paste.tclers.tk/887

you'll see that all those "Gucci ... Replica .. whatever" garbage
lines are replaced by whitespace in the Topic List view of Google
Groups. So far that's the best I can do with my 30mn of experience
with the tool. But surely after a bit of work we can remove the lines
entirely.

If you want to extend the filter, you'll quickly spot the regexp near
the top:

/.*(replica |gucci|wholesale|discount).*/gi

Enjoy !

-Alex

PS: Instructions to set it all up:
Once the extension is installed, Tools->GreaseMonkey->New User Script
In the Includes field, type or paste:
http://groups.google.com/group/comp.lang.tcl/*
In the namesapce field, type any string: foo
Then choose and open an editor, paste the above script, save and exit,
then OK, and Reload the current page.
After each cycle editing the script, Reload again.
The Enabled status of GreaseMonkey is sticky, so after stabilizing
your regexp you can forget completely about it.

PS2: Share your regexps !!!

Also try this GresaeMonkey script, "Google Groups Killfile", from http://www.penney.org/google-groups-killfile-343-released.html


Wow ! This dwarfs my little attempt :-)
Many thanks for putting me on the right track.

One question about this nice script: is there documentation
somewhere ? Indeed I see it can killfile exact topics, but apparently
regexp wildcards don't work (the code explicitly escapes them, so that
a topic "A+B" is interpreted literally).
Of course I can modify the Javascript to remove the escaping, but I
wanted to make sure there was no GUI-level way of doing it...

-Alex
.



Relevant Pages

  • Re: Generate a unique ID that identifies the client?
    ... The reason is I'm developing a GreaseMonkey "universal autologin" ... script that will automatically log a user into any website they have ... chosen to save login details for - without *any* key presses. ... possibility of storing this in a cookie. ...
    (comp.lang.javascript)
  • Re: Generate a unique ID that identifies the client?
    ... The reason is I'm developing a GreaseMonkey "universal autologin" script ... few seconds and gives the user a false sense of security. ... The latest versions of GreaseMonkey are very secure... ...
    (comp.lang.javascript)
  • Re: Any way to capture/download the videos from YouTube ?
    ... frank wrote: ... Firefox has a plugin - Greasemonkey which supports a download script that ... Greasemonkey extension with the YouTube download script ... Does anyone know of an FLV player plug-in for Windows Media Player? ...
    (rec.music.makers.guitar.jazz)
  • Re: Any way to capture/download the videos from YouTube ?
    ... Firefox has a plugin - Greasemonkey which supports a download script that ... A bit more information since I grabbed that video, ... Greasemonkey extension with the YouTube download script ...
    (rec.music.makers.guitar.jazz)
  • Alt. interface for GoogleBookmarks w/ Greasemonkey - help with sidebar
    ... I know this seems like a strange place to ask about Greasemonkey ... I created a small AJAX-like interface for Google Bookmarks and ... GreaseMonkey script into a full-fledged extension... ... how to add your own bookmarks via a script.... ...
    (comp.lang.javascript)