GM.deleteValue: Difference between revisions
From GreaseSpot Wiki
Jump to navigationJump to search
m Text replace - "[[Metadata_block" to "[[Metadata Block" |
simplify |
||
Line 2: | Line 2: | ||
== Description == | == Description == | ||
This method deletes an existing persistent value | |||
See [[GM_setValue]] for details on the storage of these values. | |||
== Syntax == | == Syntax == | ||
{{Function|GM_deleteValue|name}} | |||
Compatibility: [[Version_history#0.8.20090123.1|Greasemonkey 0.8.1+]] | |||
== Arguments == | |||
; <code>name</code> | |||
: Property name to delete. See [[GM_setValue#Arguments|GM_setValue]] for details. | |||
: | |||
== Returns == | |||
<code>undefined</code> | |||
== Examples == | == Examples == | ||
<pre class='sample'> | <pre class='sample'> | ||
GM_deleteValue("foo"); | GM_deleteValue("foo"); | ||
Line 39: | Line 28: | ||
== See Also == | == See Also == | ||
* [[GM_getValue]] | * [[GM_getValue]] | ||
* [[GM_setValue]] | * [[GM_setValue]] | ||
Line 45: | Line 35: | ||
== Notes == | == Notes == | ||
An issue that some may encounter on some platforms is that the values appear to not be deleted or set. | An issue that some may encounter on some platforms is that the values appear to not be deleted or set. | ||
This is usually due to a refreshing issue in the browser. | |||
If about:config is refreshed in the window/tab this should resolve any questions about stability of setting and deleting system preferences. | |||
[[Category:API_Reference|D]] | [[Category:API_Reference|D]] |
Revision as of 21:16, 8 February 2010
Description
This method deletes an existing persistent value See GM_setValue for details on the storage of these values.
Syntax
function GM_deleteValue( name )
Compatibility: Greasemonkey 0.8.1+
Arguments
name
- Property name to delete. See GM_setValue for details.
Returns
undefined
Examples
GM_deleteValue("foo");
See Also
Notes
An issue that some may encounter on some platforms is that the values appear to not be deleted or set. This is usually due to a refreshing issue in the browser. If about:config is refreshed in the window/tab this should resolve any questions about stability of setting and deleting system preferences.