repo_id stringlengths 22 103 | file_path stringlengths 41 147 | content stringlengths 181 193k | __index_level_0__ int64 0 0 |
|---|---|---|---|
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/pageaction | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/pageaction/imagedatatype/index.md | ---
title: pageAction.ImageDataType
slug: Mozilla/Add-ons/WebExtensions/API/pageAction/ImageDataType
page-type: webextension-api-type
browser-compat: webextensions.api.pageAction.ImageDataType
---
{{AddonSidebar}}
Pixel data for an image.
## Type
An [`ImageData`](/en-US/docs/Web/API/ImageData) object, e.g. from a {... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/identity/index.md | ---
title: identity
slug: Mozilla/Add-ons/WebExtensions/API/identity
page-type: webextension-api
browser-compat: webextensions.api.identity
---
{{AddonSidebar}}
Use the identity API to get an [OAuth2](https://oauth.net/2/) authorization code or access token, which an extension can then use to access user data from a ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/identity | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/identity/launchwebauthflow/index.md | ---
title: identity.launchWebAuthFlow
slug: Mozilla/Add-ons/WebExtensions/API/identity/launchWebAuthFlow
page-type: webextension-api-function
browser-compat: webextensions.api.identity.launchWebAuthFlow
---
{{AddonSidebar}}
Performs the first part of an [OAuth2](https://oauth.net/2/) flow, including user authenticati... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/identity | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/identity/getredirecturl/index.md | ---
title: identity.getRedirectURL()
slug: Mozilla/Add-ons/WebExtensions/API/identity/getRedirectURL
page-type: webextension-api-function
browser-compat: webextensions.api.identity.getRedirectURL
---
{{AddonSidebar}}
Generates a URL that you can use as a redirect URL.
The URL is derived from your extension's ID, so ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/permissions/index.md | ---
title: permissions
slug: Mozilla/Add-ons/WebExtensions/API/permissions
page-type: webextension-api
browser-compat: webextensions.api.permissions
---
{{AddonSidebar}}
Enables extensions to request extra permissions at runtime, after they have been installed.
Extensions need permissions to access more powerful Web... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/permissions | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/permissions/remove/index.md | ---
title: permissions.remove()
slug: Mozilla/Add-ons/WebExtensions/API/permissions/remove
page-type: webextension-api-function
browser-compat: webextensions.api.permissions.remove
---
{{AddonSidebar}}
Ask to give up the permissions listed in the given {{WebExtAPIRef("permissions.Permissions")}} object.
The `Permiss... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/permissions | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/permissions/onadded/index.md | ---
title: permissions.onAdded
slug: Mozilla/Add-ons/WebExtensions/API/permissions/onAdded
page-type: webextension-api-event
browser-compat: webextensions.api.permissions.onAdded
---
{{AddonSidebar}}
Fired when the extension granted new permissions.
## Syntax
```js-nolint
browser.permissions.onAdded.addListener(lis... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/permissions | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/permissions/contains/index.md | ---
title: permissions.contains()
slug: Mozilla/Add-ons/WebExtensions/API/permissions/contains
page-type: webextension-api-function
browser-compat: webextensions.api.permissions.contains
---
{{AddonSidebar}}
Check whether the extension has the permissions listed in the given {{WebExtAPIRef("permissions.Permissions")}... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/permissions | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/permissions/request/index.md | ---
title: permissions.request()
slug: Mozilla/Add-ons/WebExtensions/API/permissions/request
page-type: webextension-api-function
browser-compat: webextensions.api.permissions.request
---
{{AddonSidebar}}
Ask for the set of permissions listed in the given {{WebExtAPIRef("permissions.Permissions")}} object.
The `Perm... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/permissions | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/permissions/permissions/index.md | ---
title: Permissions
slug: Mozilla/Add-ons/WebExtensions/API/permissions/Permissions
page-type: webextension-api-type
browser-compat: webextensions.api.permissions.Permissions
---
{{AddonSidebar}}
A `Permissions` object represents a collection of permissions.
## Type
An {{jsxref("object")}} with the following pro... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/permissions | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/permissions/getall/index.md | ---
title: permissions.getAll()
slug: Mozilla/Add-ons/WebExtensions/API/permissions/getAll
page-type: webextension-api-function
browser-compat: webextensions.api.permissions.getAll
---
{{AddonSidebar}}
Retrieve a {{WebExtAPIRef("permissions.Permissions")}} object containing all the permissions currently granted to th... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/permissions | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/permissions/onremoved/index.md | ---
title: permissions.onRemoved
slug: Mozilla/Add-ons/WebExtensions/API/permissions/onRemoved
page-type: webextension-api-event
browser-compat: webextensions.api.permissions.onRemoved
---
{{AddonSidebar}}
Fired when some permissions are removed from the extension.
## Syntax
```js-nolint
browser.permissions.onRemov... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/idle/index.md | ---
title: idle
slug: Mozilla/Add-ons/WebExtensions/API/idle
page-type: webextension-api
browser-compat: webextensions.api.idle
---
{{AddonSidebar}}
Find out when the user's system is idle, locked, or active.
To use this API you need to have the "idle" [permission](/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/idle | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/idle/setdetectioninterval/index.md | ---
title: idle.setDetectionInterval()
slug: Mozilla/Add-ons/WebExtensions/API/idle/setDetectionInterval
page-type: webextension-api-function
browser-compat: webextensions.api.idle.setDetectionInterval
---
{{AddonSidebar}}
Sets the interval, in seconds, used to determine when the system is in an idle state for {{WebE... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/idle | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/idle/onstatechanged/index.md | ---
title: idle.onStateChanged
slug: Mozilla/Add-ons/WebExtensions/API/idle/onStateChanged
page-type: webextension-api-event
browser-compat: webextensions.api.idle.onStateChanged
---
{{AddonSidebar}}
Fired when the system changes to an active, idle or locked state. The event listener is passed a string that has one o... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/idle | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/idle/idlestate/index.md | ---
title: idle.IdleState
slug: Mozilla/Add-ons/WebExtensions/API/idle/IdleState
page-type: webextension-api-type
browser-compat: webextensions.api.idle.IdleState
---
{{AddonSidebar}}
String describing the device's idle state.
## Type
Values of this type are strings. Possible values are: `"active"`, `"idle"`, `"loc... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/idle | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/idle/querystate/index.md | ---
title: idle.queryState()
slug: Mozilla/Add-ons/WebExtensions/API/idle/queryState
page-type: webextension-api-function
browser-compat: webextensions.api.idle.queryState
---
{{AddonSidebar}}
Returns `"locked"` if the system is locked, `"idle"` if the user has not generated any input for a specified number of second... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/index.md | ---
title: storage
slug: Mozilla/Add-ons/WebExtensions/API/storage
page-type: webextension-api
browser-compat: webextensions.api.storage
---
{{AddonSidebar}}
Enables extensions to store and retrieve data, and listen for changes to stored items.
The storage system is based on the [Web Storage API](/en-US/docs/Web/API... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/local/index.md | ---
title: storage.local
slug: Mozilla/Add-ons/WebExtensions/API/storage/local
page-type: webextension-api-property
browser-compat: webextensions.api.storage.local
---
{{AddonSidebar}}
Represents the `local` storage area. Items in `local` storage are local to the machine the extension is installed on.
The browser ma... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/onchanged/index.md | ---
title: storage.onChanged
slug: Mozilla/Add-ons/WebExtensions/API/storage/onChanged
page-type: webextension-api-event
browser-compat: webextensions.api.storage.onChanged
---
{{AddonSidebar}}
Fired when {{WebExtAPIRef('storage.StorageArea.set','storageArea.set')}}, {{WebExtAPIRef('storage.StorageArea.remove','stora... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/storagechange/index.md | ---
title: storage.StorageChange
slug: Mozilla/Add-ons/WebExtensions/API/storage/StorageChange
page-type: webextension-api-type
browser-compat: webextensions.api.storage.StorageChange
---
{{AddonSidebar}}
`StorageChange` is an object representing a change to a storage area.
## Type
`StorageChange` objects contain t... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/storagearea/index.md | ---
title: storage.StorageArea
slug: Mozilla/Add-ons/WebExtensions/API/storage/StorageArea
page-type: webextension-api-type
browser-compat: webextensions.api.storage.StorageArea
---
{{AddonSidebar}}
StorageArea is an object representing a storage area.
## Type
Values of this type are objects.
## Methods
- {{WebEx... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/storagearea | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/storagearea/remove/index.md | ---
title: StorageArea.remove()
slug: Mozilla/Add-ons/WebExtensions/API/storage/StorageArea/remove
page-type: webextension-api-function
browser-compat: webextensions.api.storage.StorageArea.remove
---
{{AddonSidebar}}
Removes one or more items from the storage area.
This is an asynchronous function that returns a [`... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/storagearea | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/storagearea/onchanged/index.md | ---
title: storage.StorageArea.onChanged
slug: Mozilla/Add-ons/WebExtensions/API/storage/StorageArea/onChanged
page-type: webextension-api-event
browser-compat: webextensions.api.storage.StorageArea.onChanged
---
{{AddonSidebar}}
Fires when one or more items in a storage area change. Compared to {{WebExtAPIRef("stora... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/storagearea | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/storagearea/get/index.md | ---
title: StorageArea.get()
slug: Mozilla/Add-ons/WebExtensions/API/storage/StorageArea/get
page-type: webextension-api-function
browser-compat: webextensions.api.storage.StorageArea.get
---
{{AddonSidebar}}
Retrieves one or more items from the storage area.
This is an asynchronous function that returns a [`Promise... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/storagearea | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/storagearea/set/index.md | ---
title: StorageArea.set()
slug: Mozilla/Add-ons/WebExtensions/API/storage/StorageArea/set
page-type: webextension-api-function
browser-compat: webextensions.api.storage.StorageArea.set
---
{{AddonSidebar}}
Stores one or more items in the storage area or updates stored items.
When you store or update a value using... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/storagearea | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/storagearea/getbytesinuse/index.md | ---
title: StorageArea.getBytesInUse()
slug: Mozilla/Add-ons/WebExtensions/API/storage/StorageArea/getBytesInUse
page-type: webextension-api-function
browser-compat: webextensions.api.storage.StorageArea.getBytesInUse
---
{{AddonSidebar}}
Gets the amount of storage space, in bytes, used one or more items being stored... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/storagearea | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/storagearea/clear/index.md | ---
title: StorageArea.clear()
slug: Mozilla/Add-ons/WebExtensions/API/storage/StorageArea/clear
page-type: webextension-api-function
browser-compat: webextensions.api.storage.StorageArea.clear
---
{{AddonSidebar}}
Removes all items from the storage area.
This is an asynchronous function that returns a [`Promise`](/... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/storagearea | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/storagearea/setaccesslevel/index.md | ---
title: StorageArea.setAccessLevel()
slug: Mozilla/Add-ons/WebExtensions/API/storage/StorageArea/setAccessLevel
page-type: webextension-api-function
browser-compat: webextensions.api.storage.StorageArea.setAccessLevel
---
{{AddonSidebar}}
Sets the access level for the storage area.
This method is only supported f... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/session/index.md | ---
title: storage.session
slug: Mozilla/Add-ons/WebExtensions/API/storage/session
page-type: webextension-api-property
browser-compat: webextensions.api.storage.session
---
{{AddonSidebar}}
Represents the `session` storage area. Items in `session` storage are stored in memory for the duration of the browser session ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/managed/index.md | ---
title: storage.managed
slug: Mozilla/Add-ons/WebExtensions/API/storage/managed
page-type: webextension-api-property
browser-compat: webextensions.api.storage.managed
---
{{AddonSidebar}}
A {{WebExtAPIRef("storage.StorageArea")}} object that represents the `managed` storage area. Items in `managed` storage are set... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/storage/sync/index.md | ---
title: storage.sync
slug: Mozilla/Add-ons/WebExtensions/API/storage/sync
page-type: webextension-api-property
browser-compat: webextensions.api.storage.sync
---
{{AddonSidebar}}
Represents the `sync` storage area. Items in `sync` storage are synced by the browser. The data is then available on all instances of th... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/types/index.md | ---
title: types
slug: Mozilla/Add-ons/WebExtensions/API/types
page-type: webextension-api
---
{{AddonSidebar}}
Defines the `BrowserSetting` type, which is used to represent a browser setting.
## Types
- {{WebExtAPIRef("types.BrowserSetting")}}
- : Represents a browser setting.
## Browser compatibility
{{WebExt... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/types | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/types/browsersetting/index.md | ---
title: BrowserSetting
slug: Mozilla/Add-ons/WebExtensions/API/types/BrowserSetting
page-type: webextension-api-type
browser-compat: webextensions.api.types.BrowserSetting
---
{{AddonSidebar}}
A `BrowserSetting` is an object representing a browser setting.
It provides methods to set and get the setting's underlyi... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/types/browsersetting | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/types/browsersetting/get/index.md | ---
title: get()
slug: Mozilla/Add-ons/WebExtensions/API/types/BrowserSetting/get
page-type: webextension-api-function
---
{{AddonSidebar}}
The `BrowserSetting.get()` method gets the current value of the browser setting, and an enumeration indicating how the setting's value is currently controlled.
This is an asynch... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/types/browsersetting | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/types/browsersetting/set/index.md | ---
title: set()
slug: Mozilla/Add-ons/WebExtensions/API/types/BrowserSetting/set
page-type: webextension-api-function
---
{{AddonSidebar}}
Use `BrowserSetting.set()` to change the browser setting to a new value.
There are some rules that can restrict when extensions are able to change settings:
- some settings are... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/types/browsersetting | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/types/browsersetting/onchange/index.md | ---
title: BrowserSetting.onChange
slug: Mozilla/Add-ons/WebExtensions/API/types/BrowserSetting/onChange
page-type: webextension-api-event
browser-compat: webextensions.api.types.BrowserSetting.onChange
---
{{AddonSidebar}}
The `BrowserSetting.onChange` event is fired when the setting is changed.
On Firefox, it does... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/types/browsersetting | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/types/browsersetting/clear/index.md | ---
title: clear()
slug: Mozilla/Add-ons/WebExtensions/API/types/BrowserSetting/clear
page-type: webextension-api-function
---
{{AddonSidebar}}
Use `BrowserSetting.clear()` to clear any changes the extension has made to the browser setting. The browser setting will revert to its previous value.
The extension will al... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/topsites/index.md | ---
title: topSites
slug: Mozilla/Add-ons/WebExtensions/API/topSites
page-type: webextension-api
browser-compat: webextensions.api.topSites
---
{{AddonSidebar}}
Use the topSites API to get an array containing pages that the user has visited frequently.
Browsers maintain this to help the user get back to these places... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/topsites | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/topsites/get/index.md | ---
title: topSites.get()
slug: Mozilla/Add-ons/WebExtensions/API/topSites/get
page-type: webextension-api-function
browser-compat: webextensions.api.topSites.get
---
{{AddonSidebar}}
Gets an array containing information about pages that the user has visited often and recently.
Browsers keep a list of pages that the... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/topsites | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/topsites/mostvisitedurl/index.md | ---
title: topSites.MostVisitedURL
slug: Mozilla/Add-ons/WebExtensions/API/topSites/MostVisitedURL
page-type: webextension-api-type
browser-compat: webextensions.api.topSites.MostVisitedURL
---
{{AddonSidebar}}
The `MostVisitedURL` type contains two properties: the title of a page and its URL.
## Type
Values of thi... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/dns/index.md | ---
title: dns
slug: Mozilla/Add-ons/WebExtensions/API/dns
page-type: webextension-api
browser-compat: webextensions.api.dns
---
{{AddonSidebar}}
Enables an extension to resolve domain names.
To use this API, an extension must request the "dns" [permission](/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/per... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/dns | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/dns/resolve/index.md | ---
title: dns.resolve()
slug: Mozilla/Add-ons/WebExtensions/API/dns/resolve
page-type: webextension-api-function
browser-compat: webextensions.api.dns.resolve
---
{{AddonSidebar}}
Resolves the given hostname to a DNS record.
This is an asynchronous function that returns a [`Promise`](/en-US/docs/Web/JavaScript/Refe... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/captiveportal/index.md | ---
title: captivePortal
slug: Mozilla/Add-ons/WebExtensions/API/captivePortal
page-type: webextension-api
browser-compat: webextensions.api.captivePortal
---
{{AddonSidebar}}
Determine the captive portal state of the user's connection. A captive portal is a web page displayed when a user first connects to a Wi-Fi ne... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/captiveportal | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/captiveportal/canonicalurl/index.md | ---
title: captivePortal.canonicalURL
slug: Mozilla/Add-ons/WebExtensions/API/captivePortal/canonicalURL
page-type: webextension-api-property
browser-compat: webextensions.api.captivePortal.canonicalURL
---
{{AddonSidebar}}
Return the canonical URL of the captive-portal detection page. Read-only.
## Browser compatib... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/captiveportal | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/captiveportal/onstatechanged/index.md | ---
title: onStateChanged
slug: Mozilla/Add-ons/WebExtensions/API/captivePortal/onStateChanged
page-type: webextension-api-event
browser-compat: webextensions.api.captivePortal.onStateChanged
---
{{AddonSidebar}}
Fires when the captive portal state changes.
## Syntax
```js-nolint
browser.captivePortal.onStateChange... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/captiveportal | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/captiveportal/onconnectivityavailable/index.md | ---
title: onConnectivityAvailable
slug: Mozilla/Add-ons/WebExtensions/API/captivePortal/onConnectivityAvailable
page-type: webextension-api-event
browser-compat: webextensions.api.captivePortal.onConnectivityAvailable
---
{{AddonSidebar}}
Fires when the captive portal service determines that the user can connect to ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/captiveportal | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/captiveportal/getlastchecked/index.md | ---
title: getLastChecked
slug: Mozilla/Add-ons/WebExtensions/API/captivePortal/getLastChecked
page-type: webextension-api-function
browser-compat: webextensions.api.captivePortal.getLastChecked
---
{{AddonSidebar}}
Returns the time since the last request was completed.
## Syntax
```js-nolint
let state = browser.ca... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/captiveportal | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/captiveportal/getstate/index.md | ---
title: getState
slug: Mozilla/Add-ons/WebExtensions/API/captivePortal/getState
page-type: webextension-api-function
browser-compat: webextensions.api.captivePortal.getState
---
{{AddonSidebar}}
Returns the portal state as one of `unknown`, `not_captive`, `unlocked_portal`, or `locked_portal`.
## Syntax
```js-no... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/notifications/index.md | ---
title: notifications
slug: Mozilla/Add-ons/WebExtensions/API/notifications
page-type: webextension-api
browser-compat: webextensions.api.notifications
---
{{AddonSidebar}}
Display notifications to the user, using the underlying operating system's notification mechanism. Because this API uses the operating system'... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/notifications | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/notifications/create/index.md | ---
title: notifications.create()
slug: Mozilla/Add-ons/WebExtensions/API/notifications/create
page-type: webextension-api-function
browser-compat: webextensions.api.notifications.create
---
{{AddonSidebar}}
Creates and displays a notification.
Pass a {{WebExtAPIRef("notifications.NotificationOptions")}} to define t... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/notifications | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/notifications/notificationoptions/index.md | ---
title: notifications.NotificationOptions
slug: Mozilla/Add-ons/WebExtensions/API/notifications/NotificationOptions
page-type: webextension-api-type
browser-compat: webextensions.api.notifications.NotificationOptions
---
{{AddonSidebar}}
This type contains all the data needed to:
- create a notification using {{W... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/notifications | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/notifications/onclicked/index.md | ---
title: notifications.onClicked
slug: Mozilla/Add-ons/WebExtensions/API/notifications/onClicked
page-type: webextension-api-event
browser-compat: webextensions.api.notifications.onClicked
---
{{AddonSidebar}}
Fired when the user clicks a notification, but not on any of the notification's buttons (for that, see {{W... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/notifications | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/notifications/clear/index.md | ---
title: notifications.clear()
slug: Mozilla/Add-ons/WebExtensions/API/notifications/clear
page-type: webextension-api-function
browser-compat: webextensions.api.notifications.clear
---
{{AddonSidebar}}
Clears a notification, given its ID.
This is an asynchronous function that returns a [`Promise`](/en-US/docs/Web... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/notifications | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/notifications/update/index.md | ---
title: notifications.update()
slug: Mozilla/Add-ons/WebExtensions/API/notifications/update
page-type: webextension-api-function
browser-compat: webextensions.api.notifications.update
---
{{AddonSidebar}}
Updates a notification, given its ID.
This is an asynchronous function that returns a [`Promise`](/en-US/docs... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/notifications | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/notifications/templatetype/index.md | ---
title: notifications.TemplateType
slug: Mozilla/Add-ons/WebExtensions/API/notifications/TemplateType
page-type: webextension-api-type
browser-compat: webextensions.api.notifications.TemplateType
---
{{AddonSidebar}}
This is a string, and represents the type of notification to create. There are four types of notif... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/notifications | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/notifications/onshown/index.md | ---
title: notifications.onShown
slug: Mozilla/Add-ons/WebExtensions/API/notifications/onShown
page-type: webextension-api-event
browser-compat: webextensions.api.notifications.onShown
---
{{AddonSidebar}}
Fired immediately after a notification has been shown.
## Syntax
```js-nolint
browser.notifications.onShown.ad... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/notifications | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/notifications/onclosed/index.md | ---
title: notifications.onClosed
slug: Mozilla/Add-ons/WebExtensions/API/notifications/onClosed
page-type: webextension-api-event
browser-compat: webextensions.api.notifications.onClosed
---
{{AddonSidebar}}
Fired when a notification is closed, either by the system or by the user.
## Syntax
```js-nolint
browser.no... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/notifications | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/notifications/getall/index.md | ---
title: notifications.getAll()
slug: Mozilla/Add-ons/WebExtensions/API/notifications/getAll
page-type: webextension-api-function
browser-compat: webextensions.api.notifications.getAll
---
{{AddonSidebar}}
Gets all currently active notifications created by the extension.
This is an asynchronous function that retur... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/notifications | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/notifications/onbuttonclicked/index.md | ---
title: notifications.onButtonClicked
slug: Mozilla/Add-ons/WebExtensions/API/notifications/onButtonClicked
page-type: webextension-api-event
browser-compat: webextensions.api.notifications.onButtonClicked
---
{{AddonSidebar}}
Fired when the user clicks one of the notification's buttons.
## Syntax
```js-nolint
b... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/index.md | ---
title: declarativeNetRequest
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest
page-type: webextension-api
browser-compat: webextensions.api.declarativeNetRequest
---
{{AddonSidebar}}
This API enables extensions to specify conditions and actions that describe how network requests should be handled. Th... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/updatesessionrules/index.md | ---
title: declarativeNetRequest.updateSessionRules
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/updateSessionRules
page-type: webextension-api-function
browser-compat: webextensions.api.declarativeNetRequest.updateSessionRules
---
{{AddonSidebar}}
Modifies the set of scoped rules for the extension. ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/resourcetype/index.md | ---
title: declarativeNetRequest.ResourceType
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/ResourceType
page-type: webextension-api-type
browser-compat: webextensions.api.declarativeNetRequest.ResourceType
---
{{AddonSidebar}}
The resource type of a request. Comparable to {{WebExtAPIRef('webRequest.R... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/ruleaction/index.md | ---
title: declarativeNetRequest.RuleAction
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/RuleAction
page-type: webextension-api-type
browser-compat: webextensions.api.declarativeNetRequest.RuleAction
---
{{AddonSidebar}}
Details of the action to take if a rule is matched, as the `action` property of ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/dynamic_ruleset_id/index.md | ---
title: declarativeNetRequest.DYNAMIC_RULESET_ID
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/DYNAMIC_RULESET_ID
page-type: webextension-api-property
browser-compat: webextensions.api.declarativeNetRequest.DYNAMIC_RULESET_ID
---
{{AddonSidebar}}
Ruleset ID for the dynamic rules added by the extens... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/redirect/index.md | ---
title: declarativeNetRequest.Redirect
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/Redirect
page-type: webextension-api-type
browser-compat: webextensions.api.declarativeNetRequest.Redirect
---
{{AddonSidebar}}
Details describing how a redirect should be performed, as the `redirect` property of a... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/onrulematcheddebug/index.md | ---
title: declarativeNetRequest.onRuleMatchedDebug
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/onRuleMatchedDebug
page-type: webextension-api-event
browser-compat: webextensions.api.declarativeNetRequest.onRuleMatchedDebug
---
{{AddonSidebar}}
Fired when a rule is matched with a request. Only avail... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/updatedynamicrules/index.md | ---
title: declarativeNetRequest.updateDynamicRules
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/updateDynamicRules
page-type: webextension-api-function
browser-compat: webextensions.api.declarativeNetRequest.updateDynamicRules
---
{{AddonSidebar}}
Modifies the set of dynamic rules for the extension.... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/max_number_of_static_rulesets/index.md | ---
title: declarativeNetRequest.MAX_NUMBER_OF_STATIC_RULESETS
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/MAX_NUMBER_OF_STATIC_RULESETS
page-type: webextension-api-property
browser-compat: webextensions.api.declarativeNetRequest.MAX_NUMBER_OF_STATIC_RULESETS
---
{{AddonSidebar}}
The maximum number ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/max_number_of_dynamic_and_session_rules/index.md | ---
title: declarativeNetRequest.MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES
page-type: webextension-api-property
browser-compat: webextensions.api.declarativeNetRequest.MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES
---
{{Addon... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/max_number_of_regex_rules/index.md | ---
title: declarativeNetRequest.MAX_NUMBER_OF_REGEX_RULES
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/MAX_NUMBER_OF_REGEX_RULES
page-type: webextension-api-property
browser-compat: webextensions.api.declarativeNetRequest.MAX_NUMBER_OF_REGEX_RULES
---
{{AddonSidebar}}
The maximum number of regular e... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/urltransform/index.md | ---
title: declarativeNetRequest.URLTransform
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/URLTransform
page-type: webextension-api-type
browser-compat: webextensions.api.declarativeNetRequest.URLTransform
---
{{AddonSidebar}}
Details describing a URL transformation to perform for a redirect rule. Th... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/getmatchedrules/index.md | ---
title: declarativeNetRequest.getMatchedRules
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/getMatchedRules
page-type: webextension-api-function
browser-compat: webextensions.api.declarativeNetRequest.getMatchedRules
---
{{AddonSidebar}}
Returns all the rules matched for the extension. Callers can ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/testmatchoutcome/index.md | ---
title: declarativeNetRequest.testMatchOutcome
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/testMatchOutcome
page-type: webextension-api-function
browser-compat: webextensions.api.declarativeNetRequest.testMatchOutcome
---
{{AddonSidebar}}
Checks if any of the extension's `declarativeNetRequest` r... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/updateenabledrulesets/index.md | ---
title: declarativeNetRequest.updateEnabledRulesets
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/updateEnabledRulesets
page-type: webextension-api-function
browser-compat: webextensions.api.declarativeNetRequest.updateEnabledRulesets
---
{{AddonSidebar}}
Updates the extension's set of static rules... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/session_ruleset_id/index.md | ---
title: declarativeNetRequest.SESSION_RULESET_ID
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/SESSION_RULESET_ID
page-type: webextension-api-property
browser-compat: webextensions.api.declarativeNetRequest.SESSION_RULESET_ID
---
{{AddonSidebar}}
The ruleset ID for the session-scoped rules added by... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/rule/index.md | ---
title: declarativeNetRequest.Rule
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/Rule
page-type: webextension-api-type
browser-compat: webextensions.api.declarativeNetRequest.Rule
---
{{AddonSidebar}}
The object describing the actions to take for matching requests. These can be specified in the sta... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/modifyheaderinfo/index.md | ---
title: declarativeNetRequest.ModifyHeaderInfo
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/ModifyHeaderInfo
page-type: webextension-api-type
browser-compat:
- webextensions.api.declarativeNetRequest.RuleAction.requestHeaders
- webextensions.api.declarativeNetRequest.RuleAction.responseHeaders
-... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/guaranteed_minimum_static_rules/index.md | ---
title: declarativeNetRequest.GUARANTEED_MINIMUM_STATIC_RULES
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/GUARANTEED_MINIMUM_STATIC_RULES
page-type: webextension-api-property
browser-compat: webextensions.api.declarativeNetRequest.GUARANTEED_MINIMUM_STATIC_RULES
---
{{AddonSidebar}}
The minimum n... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/getmatchedrules_quota_interval/index.md | ---
title: declarativeNetRequest.GETMATCHEDRULES_QUOTA_INTERVAL
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/GETMATCHEDRULES_QUOTA_INTERVAL
page-type: webextension-api-property
browser-compat: webextensions.api.declarativeNetRequest.GETMATCHEDRULES_QUOTA_INTERVAL
---
{{AddonSidebar}}
The time interva... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/getsessionrules/index.md | ---
title: declarativeNetRequest.getSessionRules
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/getSessionRules
page-type: webextension-api-function
browser-compat: webextensions.api.declarativeNetRequest.getSessionRules
---
{{AddonSidebar}}
Returns the active set of session scoped rules for the extens... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/max_number_of_enabled_static_rulesets/index.md | ---
title: declarativeNetRequest.MAX_NUMBER_OF_ENABLED_STATIC_RULESETS
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/MAX_NUMBER_OF_ENABLED_STATIC_RULESETS
page-type: webextension-api-property
browser-compat: webextensions.api.declarativeNetRequest.MAX_NUMBER_OF_ENABLED_STATIC_RULESETS
---
{{AddonSideba... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/isregexsupported/index.md | ---
title: declarativeNetRequest.isRegexSupported
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/isRegexSupported
page-type: webextension-api-function
browser-compat: webextensions.api.declarativeNetRequest.isRegexSupported
---
{{AddonSidebar}}
Checks if a regular expression is supported as a {{WebExtA... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/max_getmatchedrules_calls_per_interval/index.md | ---
title: declarativeNetRequest.MAX_GETMATCHEDRULES_CALLS_PER_INTERVAL
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/MAX_GETMATCHEDRULES_CALLS_PER_INTERVAL
page-type: webextension-api-property
browser-compat: webextensions.api.declarativeNetRequest.MAX_GETMATCHEDRULES_CALLS_PER_INTERVAL
---
{{AddonSid... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/getenabledrulesets/index.md | ---
title: declarativeNetRequest.getEnabledRulesets
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/getEnabledRulesets
page-type: webextension-api-function
browser-compat: webextensions.api.declarativeNetRequest.getEnabledRulesets
---
{{AddonSidebar}}
Returns the IDs for the set of activated static rule... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/getdynamicrules/index.md | ---
title: declarativeNetRequest.getDynamicRules
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/getDynamicRules
page-type: webextension-api-function
browser-compat: webextensions.api.declarativeNetRequest.getDynamicRules
---
{{AddonSidebar}}
Returns the set of dynamic rules for the extension.
## Synta... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/rulecondition/index.md | ---
title: declarativeNetRequest.RuleCondition
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/RuleCondition
page-type: webextension-api-type
browser-compat: webextensions.api.declarativeNetRequest.RuleCondition
---
{{AddonSidebar}}
Details of the condition that determines whether a rule matches a reque... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/setextensionactionoptions/index.md | ---
title: declarativeNetRequest.setExtensionActionOptions
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/setExtensionActionOptions
page-type: webextension-api-function
browser-compat: webextensions.api.declarativeNetRequest.setExtensionActionOptions
---
{{AddonSidebar}}
Configures whether the action c... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/matchedrule/index.md | ---
title: declarativeNetRequest.MatchedRule
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/MatchedRule
page-type: webextension-api-type
browser-compat: webextensions.api.declarativeNetRequest.MatchedRule
---
{{AddonSidebar}}
An object describing the matched rule. This type may be returned by the {{Web... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/getavailablestaticrulecount/index.md | ---
title: declarativeNetRequest.getAvailableStaticRuleCount
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/getAvailableStaticRuleCount
page-type: webextension-api-function
browser-compat: webextensions.api.declarativeNetRequest.getAvailableStaticRuleCount
---
{{AddonSidebar}}
Returns the number of sta... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/history/index.md | ---
title: history
slug: Mozilla/Add-ons/WebExtensions/API/history
page-type: webextension-api
browser-compat: webextensions.api.history
---
{{AddonSidebar}}
Use the `history` API to interact with the browser history.
If you are looking for information about the browser session history, see the [History interface](/... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/history | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/history/onvisited/index.md | ---
title: history.onVisited
slug: Mozilla/Add-ons/WebExtensions/API/history/onVisited
page-type: webextension-api-event
browser-compat: webextensions.api.history.onVisited
---
{{AddonSidebar}}
Fired each time the user visits a page. A {{WebExtAPIRef("history.HistoryItem")}} object is passed to the listener. This eve... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/history | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/history/historyitem/index.md | ---
title: history.HistoryItem
slug: Mozilla/Add-ons/WebExtensions/API/history/HistoryItem
page-type: webextension-api-type
browser-compat: webextensions.api.history.HistoryItem
---
{{AddonSidebar}}
A `HistoryItem` object provides information about a page in the browser history.
## Type
This is an object with the f... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/history | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/history/onvisitremoved/index.md | ---
title: history.onVisitRemoved
slug: Mozilla/Add-ons/WebExtensions/API/history/onVisitRemoved
page-type: webextension-api-event
browser-compat: webextensions.api.history.onVisitRemoved
---
{{AddonSidebar}}
Fired when a page is removed completely from the browser history.
- If all visits to a single page are remov... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/history | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/history/search/index.md | ---
title: history.search()
slug: Mozilla/Add-ons/WebExtensions/API/history/search
page-type: webextension-api-function
browser-compat: webextensions.api.history.search
---
{{AddonSidebar}}
Searches the browser's history for {{WebExtAPIRef("history.HistoryItem")}} objects matching the given criteria.
This is an asyn... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/history | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/history/getvisits/index.md | ---
title: history.getVisits()
slug: Mozilla/Add-ons/WebExtensions/API/history/getVisits
page-type: webextension-api-function
browser-compat: webextensions.api.history.getVisits
---
{{AddonSidebar}}
Retrieves information about all visits to the given URL.
This is an asynchronous function that returns a [`Promise`](/... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/history | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/history/visititem/index.md | ---
title: history.VisitItem
slug: Mozilla/Add-ons/WebExtensions/API/history/VisitItem
page-type: webextension-api-type
browser-compat: webextensions.api.history.VisitItem
---
{{AddonSidebar}}
An object describing a single visit to a page.
## Type
Values of this type are objects. They contain the following properti... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/history | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/history/deleterange/index.md | ---
title: history.deleteRange()
slug: Mozilla/Add-ons/WebExtensions/API/history/deleteRange
page-type: webextension-api-function
browser-compat: webextensions.api.history.deleteRange
---
{{AddonSidebar}}
Removes all visits to pages that the user made during the given time range. If this removes all visits made to a ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/history | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/history/deleteall/index.md | ---
title: history.deleteAll()
slug: Mozilla/Add-ons/WebExtensions/API/history/deleteAll
page-type: webextension-api-function
browser-compat: webextensions.api.history.deleteAll
---
{{AddonSidebar}}
Deletes all visits from the browser's history.
This function triggers {{WebExtAPIRef("history.onVisitRemoved")}} just ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/history | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/history/ontitlechanged/index.md | ---
title: history.onTitleChanged
slug: Mozilla/Add-ons/WebExtensions/API/history/onTitleChanged
page-type: webextension-api-event
browser-compat: webextensions.api.history.onTitleChanged
---
{{AddonSidebar}}
Fired when the title of a page visited by the user is recorded. To listen for visits to a page you use {{WebE... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.