Path: blob/main/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/getenabledrulesets/index.md
6552 views
------{{AddonSidebar()}}
Returns the IDs for the set of activated static rulesets.
Syntax
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
{{WebExtExamples}}
Browser compatibility
{{Compat}}