On Sat, Aug 25, 2012 at 5:50 AM, tomchen <[email protected]> wrote:
> Do I need to use "@grant unsafeWindow" if I want to use the unsafeWindow > API? > No. If you "@grant none" the window is the unsafe window. For backwards compatibility, the variable named "unsafeWindow" is provided, as a direct alias to the "window" object. If you @grant anything else, you run in the legacy mode which has a different window and unsafeWindow. 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? > Safe in what way? -- 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.
