chrome.contentSettings library

Use the chrome.contentSettings API to change settings that control whether websites can use features such as cookies, JavaScript, and plugins. More generally speaking, content settings allow you to customize Chrome's behavior on a per-site basis instead of globally.

Classes

CameraContentSetting
ChromeContentSettings
ContentSetting
ContentSettingsClearParams
ContentSettingsGetParams
ContentSettingsSetParams
CookiesContentSetting
FullscreenContentSetting
ImagesContentSetting
JavascriptContentSetting
LocationContentSetting
MicrophoneContentSetting
MouselockContentSetting
MultipleAutomaticDownloadsContentSetting
NotificationsContentSetting
PluginsContentSetting
PopupsContentSetting
PpapiBrokerContentSetting
ResourceIdentifier
The only content type using resource identifiers is contentSettings.plugins. For more information, see Resource Identifiers.
Scope
The scope of the ContentSetting. One of
regular: setting for regular profile (which is inherited by the incognito profile if not overridden elsewhere),
incognito_session_only: setting for incognito profile that can only be set during an incognito session and is deleted when the incognito session ends (overrides regular settings).

Properties

contentSettings ChromeContentSettings
Accessor for the chrome.contentSettings namespace.
final