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
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.
".
Syntax
GM_listValues()
- Value: Function
- Returns: String Array
- Compatibility: Greasemonkey 0.8.1+
Parameters Properties
- There are currently no properties.
Examples
An array of values used by a script: Template:Good samp
Equivalent: Template:Good samp