[Greasemonkey] iframes and Script injection

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


There is no lack of GM_log. GM_log is present in 0.5+ at least. What
problem are you having with it?

- a

On 12/7/05, John Plsek <jplsek at iinet.net.au> wrote:
> Thanks for confirming my suspicions ... don't know WHY I didn't try that
> earlier... at least now I know how to definitively get
> monkeyed/un-monkeyed versions of pages - the lack of GM_log thing is a
> pain though -
>
> John
> Aaron Boodman wrote:
>
> >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
> >>
> >>
> >>
> >_______________________________________________
> >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