That wiki page doesn't really answer the question.  It has a section
entitled Workaround, that says:

"Generally, flicker is a problem that should be ignored. If, however,
a script author decides that it must be avoided there is at least one
technique.

Using a combination of userContent.css [ 
http://kb.mozillazine.org/UserContent.css
] and -moz-document() [ https://developer.mozilla.org/CSS:@-moz-document/en
] rules, the page can be hidden completely. The Greasemonkey script
would then be crafted to undo this CSS rule, after altering it,
thereby never showing the page in its pre-greased state."

The first link describes changing the userContent.css file, and the
second goes to a blank page.  A quick search finds: [
https://developer.mozilla.org/en/CSS/@-moz-document  ], which
describes an @ (at-rule) that you can add to Gecko specific
userContent.css files.  Asking users of your script to edit their own
userContent file is probably a very bad idea.

So to clarify, you can either write your own extension, or you can
accept that the answer is, in fact, no.


On Jul 11, 9:37 pm, Matt Sargent <[email protected]> wrote:
> Answered in the wiki:http://wiki.greasespot.net/Event_type:DOMContentLoaded
>
> [email protected] wrote:
> > this is something that is bugging me, everywhere i look the response
> > is usually the same, which is no
>
> > firefox renders as its loading the content and i can even understand
> > why greasemonkey needs to have the full page before doing something,
> > but i've seen extensions that do something before rendering the page,
> > for example, adblock does it, why can't greasemonkey do it to? can't
> > there be some sort of GM function that lets you do that?
>
> > this bugs me because some sites take a while to load and i only see
> > the result at the end, actually most of the time the page is fully
> > loaded and it's just some sort of ad related content that it's taking
> > a while to load
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to