[Greasemonkey] Page-load jumpiness

Mihai Parparita mihai.parparita at gmail.com
Thu Apr 28 14:21:38 EDT 2005


User scripts could have a special flag like "@options hide_target".
When injecting scripts, if any of them has the flag present, then the
following CSS rule is inserted in the head section: "body {display:
none !important}" It's then up to the user script to show the document
when it deems appropriate.

Mihai

On 4/28/05, alan taylor <kokogiak at gmail.com> wrote:
> Ha! Yeah, in the best of all worlds the URLID extension would do it -
> but on just trying it now, the order of execution is: Page render > GM
> User Script > URLID CSS rules applied. Jumpier still :)
> 
> Good idea though. Will keep trying to see if I can think of something clever.
> 
> -Alan
> 
> On 4/28/05, Aaron Boodman <zboogs at gmail.com> wrote:
> > No. :-( The first ~4 ways I've tried to solve this have not worked.
> > Maybe you could look into the URLID extension. If it kicks in early
> > enough, you could create a  user css rule to set the display of
> > document.body to none. Then in the user script, set it back to block.
> >
> > --
> > Aaron
> >
> > On 4/28/05, alan taylor <kokogiak at gmail.com> wrote:
> > > This may have been discussed before, but has anyone come up with a
> > > workable way to handle the 'jumpiness' caused by re-structuring a page
> > > with GM after it loads? Is there a way to pause rendering or hide the
> > > rendered page until after GM-modification has taken place?
> > >
> > > I'm working on my own private view of NYTimes.com - and it's a thicket
> > > of nested tables, so the jumping-around is pretty annoying. Thanks.
> > >
> > > -Alan Taylor
> > > _______________________________________________
> > > 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