GM_getValue
From GreaseSpot
Contents |
[edit] Description
This method retrieves a value that was set with GM_setValue. See GM_setValue for details on the storage of these values.
Compatibility: Greasemonkey 0.3b+
[edit] Syntax
function GM_getValue( name, default )
[edit] Arguments
-
name -
StringThe property name to get. See GM_setValue for details. -
default - Optional. Any value to be returned, when no value has previously been set.
[edit] Returns
- When this
namehas been set -
String,IntegerorBooleanas previously set - When this
namehas not been set, anddefaultis provided - The value passed as
default - When this
namehas not been set, anddefaultis not provided -
null
[edit] Examples
GM_log(GM_getValue("foo"));

