Libraries »

Prefs Library

prefs.get(key,novalue)

Gets the value of a browser setting. If key is not found, returns the value supplied in the second parameter; otherwise, returns nil.
returns: variant

prefs.getdefault(key)

Gets the default value of a browser setting.
returns: variant

prefs.getall()

Returns the value of all settings as JSON string.
returns: json

prefs.getalldefault()

Returns the default value of all settings as JSON string.
returns: json

prefs.load(json)

Loads the browser settings from a JSON string.

prefs.regdefault(key,value)

Registers the default value of a browser setting.

prefs.save()

Saves the browser settings to the disk.

prefs.set(key,value)

Sets the value of a browser setting.

prefs.update()

Notifies all open tabs about a setting or multiple settings update.

Developer

Language

Page last modified on August 05, 2013, at 08:28 PM
© 2023 Syhunt