[Greasemonkey] Re: Running my function vs a function on the page

Nikolas Coukouma atrus at atrus.org
Tue Jun 6 21:46:13 EDT 2006


daddydave wrote:
> I notice that GM allows running functions that are already on the received
> page. If there is a function foo() and I have my own function foo() in the
> user script, is mine the one that always gets run? Or is it necessary ti
> specify the namespace the function is running in?
Yours is the one that's run by default. You can call the page's function
using unsafeWindow.foo()

-Nikolas



More information about the Greasemonkey mailing list