Am 07.12.2012 05:24, schrieb Andre Dubois:
holy crap... I had no idea I needed to at GM_setValue to my @grants.  I
suppose I missed those lines when you first sent me the link.

This script worked for far more than a year without needed, and I'm
surprised that I never had a problem until now.

Anyway, thanks for your help.  I added the @grant lines, and everything is
better now

Thanks!

The @grant statement is a security feature. Greasemonkey only grants access to the API functions you declared. I. e.: just because the script is allowed to set and read values, it mustn't perform XML requests. In the previous versions, the @grant statement was silently added for compatibility, issuing a warning though that you could update your script to be compatible with GM versions that wouldn't implicitly grant the API access any more.

And if I am correct, scripts without API access (@grant none) are executed in the scope of the website, which allows you to write JavaScript as you're used to, without having to deal with the sandbox pitfalls like the element wrappers.

Chris

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