GM.listValues: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
m (→‎Examples: Change from Core to Good signaling... sb)
m (top links ... sf)
Line 32: Line 32:
GM_log(GM_listValues());
GM_log(GM_listValues());
</pre>}}
</pre>}}
[[#top|top]]


An array of values used by a script:
An array of values used by a script:
Line 39: Line 41:
     vals.push(GM_getValue(val));
     vals.push(GM_getValue(val));
</pre>}}
</pre>}}
[[#top|top]]


Equivalent:
Equivalent:

Revision as of 06:58, 30 August 2009

Template:Underscore


Greasemonkey Manual
Using Greasemonkey
Installing Scripts
Monkey Menu
Getting Help
User Script Authoring
Editing
Environment
API

Description

This API method retrieves an array of preference names that start with the branch's root.

Values are retrieved from the Firefox preferences back end and can be manually viewed by typing about:config in the address bar and searching for the preference name "greasemonkey.scriptvals.namespace/name.".

Examples | See Also | Notes

Syntax

GM_listValues()

Value: Function
Returns: String Array
Compatibility: Greasemonkey 0.8.1+
Parameters
Properties
  • There are currently no properties.

top

Examples

Template:Core samp

top

An array of values used by a script: Template:Good samp

top

Equivalent: Template:Good samp

top

See Also

top

Notes

top