[Greasemonkey] web page javascript generated html removal

Dano Carroll dano at xernolan.org
Thu Apr 6 14:32:56 EDT 2006


On Thu, Apr 06, 2006 at 09:23:26PM +0800, Mook wrote:
> 
> Since you're using privoxy anyway, you might as well just insert a
> script block at the beginning of <head>, doing:
> 
> window.alert = function(){}
> 
> No more alerts.  If you do want some, you can always set it back via
> GM... (noting that the safe window's alert() is unchanged, and you can
> stick it back onto the unsafeWIndow)
> 

I'm not sure how to do that in privoxy. I'm assuming you're talking
about privoxy since greasemonkey javascript always gets run after the
web page's javascript. Since privoxy does do some alteration of the
web content, I should be able to find a way of injecting my own
javascript in there like privoxy does for turning some popups off.

Thanks,
Dano

-- 

"I aim to misbehave" - Malcom Reynolds, Captain/Owner of Serenity




More information about the Greasemonkey mailing list