On Sun, Sep 23, 2012 at 2:57 AM, mjh563 <[email protected]> wrote:

> I've probably misunderstood something, but does that mean that even
> when a script is run unwrapped and in content scope, it's safe to
> declare variables at the top level of the script, and they won't
> affect any in-page global variables of the same name?
>

Exactly that.  Otherwise it's too easy to break the page by default.

http://www.greasespot.net/2012/09/the-design-of-greasemonkey-10.html

If you want to set the content scope, assign to "window.testvar".

-- 
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