browserSettings

拡張機能にグローバルなブラウザー設定の変更を可能にします。この API の各プロパティは BrowserSetting オブジェクトで、これはそれぞれの設定の変更能力を提供します。これはグローバルな設定のため、拡張機能で衝突が起きる可能性があります。衝突の処理方法の詳細は BrowserSetting.set() の文書を見てください。

この API を使うには "browserSettings" パーミッションが必要です。

プロパティ

browserSettings.allowPopupsForUserEvents

ユーザーのイベントに反応して、ウェブページで実行しているコードがポップアップを許可するかどうかを決める

browserSettings.cacheEnabled

ブラウザーキャッシュの有効・無効を決める

browserSettings.homepageOverride

ブラウザーのホームページの値を読む

browserSettings.imageAnimationBehavior

ブラウザーが画像アニメーションをどう扱うのかを決める

browserSettings.newTabPageOverride

ブラウザーの新規タブページ値を読む

browserSettings.webNotificationsDisabled

ウェブサイトが Notification Web API を使って通知を表示するのを妨げる

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Firefox for Android
Safari on iOS
browserSettings
allowPopupsForUserEvents
cacheEnabled
closeTabsByDoubleClick
colorManagement
contextMenuShowEvent
ftpProtocolEnabled
homepageOverride
imageAnimationBehavior
newTabPageOverride
newTabPosition
openBookmarksInNewTabs
openSearchResultsInNewTabs
openUrlbarResultsInNewTabs
overrideContentColorScheme
overrideDocumentColors
tlsVersionRestrictionConfig
useDocumentFonts
webNotificationsDisabled
zoomFullPage
zoomSiteSpecific

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
See implementation notes.