Search code examples
persistencegreasemonkeyscriptish

GM_setValue is not defined


I'm trying to get a fairly simple script which persists a value and retrieves it in the successor to GreaseMonkey: Scriptish.

Browser: Firefox 9.0
Scriptish: 0.1.7
On Windows 7 Ultimate 64-bit

// ==UserScript==
// @id             testSerialization
// @name           Test Serialization
// @version        1.0
// @namespace      com.mobilvox.com
// @author         
// @description    
// @include        http://www.google.com/
// @run-at         document-end
// ==/UserScript==

GM_setValue("isCurrent", true);
GM_log("Is this script current? " + GM_getValue("isCurrent", false));

When I run it I get:

[10:29:59.074] GM_setValue is not defined
@Scratchpad:29
 @ Scratchpad:29

Solution

  • This looks like a possible bug, see related bugs like "GM_setValue not working".

    Possible actions:

    1. Firefox 9 is getting obsolete. Upgrade to FF 12 or FF 13 and see if the problem persists.
    2. File a bug report for Scriptish.