declarativeNetRequest.getDynamicRules
Returns the set of dynamic rules for the extension.
Syntax
js
let gettingDynamicRules = browser.declarativeNetRequest.getDynamicRules();
Parameters
filter
Optional-
An object to filter the list of returned rules.
ruleIds
Optional-
An array of
integer
. The IDs of the rules to return.
Return value
A Promise
is fulfilled with an array of declarativeNetRequest.Rule
objects. Each of these represents a rule that belongs to the extension. If no rules are active, the array is empty. If the request fails, the promise is rejected with an error message.
Examples
Example extensions
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
getDynamicRules | |||||||
filter |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.