web api interface
PreferenceObject
Limited availabilitySecure context
The PreferenceObject interface of the User Preferences API provides attributes and methods for reading and overriding user preferences.
Use the document’s PreferenceManager (accessed via preferences) to get access to the PreferenceObject objects representing each available preference.
The PreferenceManager interface inherits from EventTarget.
Instance properties
overrideRead only Experimental- : The override value if set,
nullotherwise.
- : The override value if set,
valueRead only Experimental- : The override value if set, the UA default otherwise.
validValuesRead only Experimental- : The valid values for the override.
Instance methods
clearOverride()Experimental- : Resets any previously set override to
nulland fires thechangeevent.
- : Resets any previously set override to
requestOverride()Experimental- : Requests an override of the preference and fires the
changeevent on success.
- : Requests an override of the preference and fires the
Events
changeExperimental- : Fired when the override is set or reset.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.