On Wed, Dec 5, 2012 at 9:30 PM, Andre Dubois <[email protected]>wrote:

> I went to a random website, and created the following script, which gives
> me the error "GM_setVar is not defined"
>
>
> // ==UserScript==
>> // @name        test
>> // @namespace   http://userscripts.org/scripts/show/110076
>> // @include
>> http://www.electrictoolbox.com/pad-number-zeroes-javascript/
>> // @version     1
>> // @grant        metadata
>> // ==/UserScript==
>>
>> GM_setVar("Test", "this is a test")
>
>
A) "@grant metadata" is meaningless, that value doesn't do anything.
B) Of course.  There is no "GM_setVar".
http://wiki.greasespot.net/Greasemonkey_Manual:API
C) If you specify any @grants, you have to specify one for every
(correct/extant) method you want to use.

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