Returns the IDs for the set of activated static rulesets.
On this page
declarativeNetRequest.getEnabledRulesets
Syntax
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
getEnabledRulesets |
84 | 84 | No | ? | 70 | 15 | ? | ? | No | ? | 15 | ? |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/getEnabledRulesets