GM.deleteValue: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
Aavindraa (talk | contribs)
→‎Syntax: Remove nonsensical statement.
Marti (talk | contribs)
m Undo revision 4132 by Aavindraa (Talk) Restored "sensical" statement
Line 24: Line 24:
| <code><span style="background:#FFFFE0;">[[#name |name]]</span></code>
| <code><span style="background:#FFFFE0;">[[#name |name]]</span></code>
|}
|}
:* All properties are optional except [[#name|name]].


[[#top|top]]
[[#top|top]]

Revision as of 17:05, 1 September 2009

Template:Underscore


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".

Examples | See Also | Notes

Syntax

GM_deleteValue( name )

Value: Function
Returns: undefined
Compatibility: Greasemonkey 0.8.1+
Parameters
Properties
name
  • All properties are optional except name.

top

Properties


name

Value: String
Usage: name = "PropertyName";
  • Property name to delete.

top | back

Examples

Template:Core samp

top

See Also

top

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.

top