[Greasemonkey] iframes and Script injection

Aaron Boodman zboogs at gmail.com
Wed Dec 7 20:03:05 EST 2005


Greasemonkey runs in response to DOMContentLoaded, which probably
doesn't occur for display:none. The IFRAME must be part of the DOM {
appendChild() called } and have display != none. The usual approach is
to use absolute positioning to put it way, way off the top left corner
of the page -- like -3000,-3000

- a

On 12/7/05, John Plsek <jplsek at iinet.net.au> wrote:
> Has nothing to do with URLS ... the URL is identical to the page the
> script is running on, except for p=2,3,4 etc instead of p=1 ... eg
>
> http://blah.com/forums?thread=1234&p=1
>
> a) seems if I set the style.display="none" for the iframe, either the
> scripts aren't being run, or maybe, for some reason, when I retreive the
> posts, it's the un-monkeyed version??
> b) seems GM_log doesn't work in iframes in either case (display is
> "none" or default)
> c) I have it working (to a degree) by not setting display="none"
>
> Thanks
>
> John
> Bill Donnelly wrote:
>
> > It's all done with your include and exclude metadata items.
> > Those control what is loaded where.
> > So you need to look at the iframe's URL location and go from there.
> >
> > _______________________________________________
> > Greasemonkey mailing list
> > Greasemonkey at mozdev.org
> > http://mozdev.org/mailman/listinfo/greasemonkey
> >
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>


More information about the Greasemonkey mailing list