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

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Firefox for Android
Safari on iOS
getEnabledRulesets

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support