[Greasemonkey] Removing a script

Phil Ringnalda philringnalda at gmail.com
Thu Apr 14 10:22:33 EDT 2005


Stuart Langridge wrote:
> Can I make 
> the userscript run earlier, so that it removes the <script> element before 
> it is parsed and the indicated script is loaded?

I suppose you would run into cross-site problems if you just removed the 
script element from the DOM, added a <base href>, and then serialized 
getElementsByTagName("html")[0].innerHTML into a data: URL that you then 
load?

Phil Ringnalda


More information about the Greasemonkey mailing list