[Greasemonkey] What is GM_executeContentScript?

Jeremy Dunck jdunck at gmail.com
Mon Mar 13 11:58:22 EST 2006


On 3/13/06, csaba2000 <csaba2000 at yahoo.com> wrote:
>  Could you not also (approximately) accomplish the same thing in a
> safe way by doing:
> unsafeWindow.setTimeout(function() {...}, 100)

Content could make setTimeout do something evil.
...
> But is the call (effectively) asychronous (as a setTimeout would be)?  In
> other words, if GM_executeContentScript() were to set a value on unsafe
> window, could the next line of GM script rely on that value?

Yes.


More information about the Greasemonkey mailing list