Prefs1.0

back

Commands

Events

This service allows you to read, enumerate and write Opera's user prefs. Please note that when you set a pref, it is stored on disk, and its value will persist to the subsequent launches of the same profile.

GetPref

Get the value of a preference. If the preference could not be found, or it for some other reason is not readable, an error will occur.

It is possible to get the current (actual) value of the pref, or the default value of the pref.

command GetPref(GetPrefArg)
{
}
returns (PrefValue)
{
}
= 1;

ListPrefs

Enumerate all prefs.

command ListPrefs(ListPrefsArg)
{
}
returns (PrefList)
{
}
= 2;

SetPref

Set the value of a single pref. If the preference could not be found, or it for some other reason is not readable, an error will occur.

command SetPref(SetPrefArg)
{
}
returns (Default)
{
}
= 3;