[Greasemonkey] Removing a script

Aaron Boodman zboogs at gmail.com
Thu Apr 14 12:05:08 EDT 2005


Can't you skip the loading part and just do 

document.getElementsByTagName("html")[0] = strSourceCodeWithoutJavaScript

?

amazing.

On 4/14/05, Julien Couvreur <julien.couvreur at gmail.com> wrote:
> Phil Ringnalda <philringnalda at gmail.com> wrote:
> > ... 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?
> 
> Aren't URLs limited to 2k or something? That means the page you want
> to convert to a data: url can't be over that limit, I'd think.
> Not to mention that some characters need to be escaped.
> 
> Julien
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>


More information about the Greasemonkey mailing list