declarativeNetRequest.getEnabledRulesets
Returns the IDs for the set of activated static rulesets.
Syntax
js
let rulesetIds = await browser.declarativeNetRequest.getEnabledRulesets();
Parameters
This function takes no parameters.
Return value
A Promise fulfilled with an array of string containing static rulesets IDs. If no rules are active, the array is empty. If the request fails, the promise is rejected with an error message.
Examples
Browser compatibility
| desktop | mobile | ||||||
|---|---|---|---|---|---|---|---|
getEnabledRulesets
|
|
|
|
|
|
|
|
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support