GM.deleteValue: Difference between revisions
From GreaseSpot Wiki
Jump to navigationJump to search
m →Syntax: Forward indication |
m marking core sample code vs other sample code. |
||
Line 38: | Line 38: | ||
== Examples == | == Examples == | ||
{{Core samp |1=<pre style="border: none; margin: inherit;"> | |||
GM_deleteValue("foo"); | GM_deleteValue("foo"); | ||
</pre> | </pre>}} | ||
[[#top|top]] | [[#top|top]] |
Revision as of 04:33, 7 May 2009
Greasemonkey Manual |
Using Greasemonkey |
---|
Installing Scripts |
Monkey Menu |
Getting Help |
User Script Authoring |
Editing |
Environment |
API |
Description
This API method deletes an existing preference set by GM_setValue.
Values are deleted 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.foo
".
Syntax
GM_deleteValue( name )
- Value: Function
- Returns: undefined
- Compatibility: Greasemonkey 0.8.1+
Parameters Properties name
- All properties are optional except name.
Properties
name
- Value: String
- Usage:
name = "PropertyName";
- Property name to delete.