Movatterモバイル変換


[0]ホーム

URL:


  1. Mozilla
  2. Add-ons
  3. Browser extensions
  4. JavaScript APIs
  5. types
  6. BrowserSetting

BrowserSetting

ABrowserSetting is an object representing a browser setting.

It provides methods to set and get the setting's underlying value, to clear any change you've made to it, and to listen for changes to its value.

Note that while this object is based on theChromeSetting type, this object does not distinguish between setting the value in normal browsing windows and in private browsing windows. This means that all parts of the API relating to private browsing (such as thescope option toChromeSetting.set()) are not implemented.

Methods

types.BrowserSetting.get()

Get the current value of the setting, and an enumeration representing how the setting is currently controlled.

types.BrowserSetting.set()

Set the setting to a new value.

types.BrowserSetting.clear()

Clear any change made to the setting by this extension.

Events

types.BrowserSetting.onChange

Fired when the setting's value changes.

Browser compatibility

Note:This API is based on Chromium'schrome.types API.

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp