[Greasemonkey] anti-banner-blocking, can GM circumvent?

Phil Ringnalda philringnalda at gmail.com
Sat Apr 2 23:01:11 EST 2005

On Apr 2, 2005 8:40 PM, Jeremy Dunck <jdunck at gmail.com> wrote:
> Huh?  Are you asking for help with something?

No, he's replying to
http://mozdev.org/pipermail/greasemonkey/2005-March/000493.html with
an oddly-enough: oddly enough, even though environmentalchemistry.com
has a huge wad of obfuscated script to ensure that you don't block
their ads, if your userAgent string includes 'Macintosh' you get a
free pass.

However, the userscript should probably be checking for
navigator.userAgent.indexOf('Macintosh') != -1 and only appending it
if it isn't there, to keep from building up a long string of Macintosh
Macintosh Macintosh after a few page views.

Phil Ringnalda

More information about the Greasemonkey mailing list