BTW, another question: if no @grant is specified, and no API method is 
used, the script will run without sandbox, making it able to access 
variables in the page, which means, a lot of userscript will no longer run 
in the security sandbox, does it become less safe to do so?


On Saturday, August 25, 2012 5:30:36 PM UTC+8, tomchen wrote:
>
> Do I need to use "@grant unsafeWindow" if I want to use the unsafeWindow 
> API?
>
> Here http://wiki.greasespot.net/@grant it reads:
> If a script specifies any values (or they have been auto detected), then 
> it will be provided with *only those** 
> API<http://wiki.greasespot.net/API_Reference>methods
> * that it declares.
> The *valid values are the names of those GM_ prefixed values* that you 
> wish your script to be granted access to.
>
> So, non GM_ prefixed API method, unsafeWindow, can be used or not?
>

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/greasemonkey-users/-/SSs5MpRahjcJ.
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