browserSettings
Enables an extension to modify certain global browser settings. Each property of this API is a BrowserSetting object, providing the ability to modify a particular setting.
Enables an extension to modify certain global browser settings. Each property of this API is a BrowserSetting object, providing the ability to modify a particular setting.
Because these are global settings, it's possible for extensions to conflict. See the documentation for [`BrowserSetting.set()`](/docs/Mozilla/Add-ons/WebExtensions/API/types/BrowserSetting/set) for details of how conflicts are handled.
To use this API, you need the "browserSettings" [permission](/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions).
## Properties
- browserSettings.allowPopupsForUserEvents
- : Determines whether code running in web pages can display popups in response to user events.
- browserSettings.cacheEnabled
- : Determines whether the browser cache is enabled or not.
- browserSettings.closeTabsByDoubleClick
- : Determines whether the selected tab can be closed with a double click.
- browserSettings.colorManagement
- : Determines various settings for color management.
- browserSettings.contextMenuShowEvent
- : Determines the mouse event that triggers a context menu popup.
- browserSettings.ftpProtocolEnabled
- : Determines whether the FTP protocol is enabled.
- browserSettings.homepageOverride
- : Reads the value of the browser's home page.
- browserSettings.imageAnimationBehavior
- : Determines how the browser treats animated images.
- browserSettings.newTabPageOverride
- : Reads the value of the browser's new tab page.
- browserSettings.newTabPosition
- : Controls the position of new tabs relative to the open tabs.
- browserSettings.openBookmarksInNewTabs
- : Determines whether bookmarks open in the current tab or a new tab.
- browserSettings.openSearchResultsInNewTabs
- : Determines whether search results open in the current tab or a new tab.
- browserSettings.openUrlbarResultsInNewTabs
- : Determines whether address bar autocomplete suggestions are opened in the current tab or a new tab.
- browserSettings.overrideContentColorScheme
- : Controls whether to override the browser theme (light or dark) when setting pages' preferred color scheme.
- browserSettings.overrideDocumentColors
- : Controls whether the user-chosen colors override the page's colors.
- browserSettings.tlsVersionRestrictionConfig
- : Reads the highest and lowest versions of TLS supported by the browser.
- browserSettings.useDocumentFonts
- : Controls whether the browser uses the fonts specified by a web page or uses only built-in fonts.
- browserSettings.verticalTabs
- : Controls whether the browser displays the tab bar horizontally or vertically.
- browserSettings.webNotificationsDisabled
- : Prevents websites from showing notifications using the [`Notification`](/docs/Web/API/Notification) Web API.
- browserSettings.zoomFullPage
- : Controls whether zoom is applied to the entire page or to text only.
- browserSettings.zoomSiteSpecific
- : Controls whether page zoom is applied on a per-site or per-tab basis. If [`privacy.websites.resistFingerprinting`](/docs/Mozilla/Add-ons/WebExtensions/API/privacy/websites#resistfingerprinting) is true, this setting has no effect and zoom is applied on a per-tab basis.
h2
## Browser compatibility
Cite this
"browserSettings". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/browserSettings JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy