MDN self-hosted library · e01.org

declarativeNetRequest.getDisabledRuleIds()

Returns the IDs of the disabled rules in a static ruleset. The number of disabled rules in a ruleset is limited to the value of MAXNUMBEROFDISABLEDSTATICRULES.

no runnable cells webextension-api-function upstream source

Returns the IDs of the disabled rules in a static ruleset. The number of disabled rules in a ruleset is limited to the value of MAX_NUMBER_OF_DISABLED_STATIC_RULES.

Syntax

let ruleIds = await browser.declarativeNetRequest.getDisabledRuleIds(
    options                // object
);

Parameters

  • options
  • : An object containing details of the ruleset to return disabled rules for.
    • rulesetId
    • : string The ID of the static ruleset to query.

Return value

A Promise fulfilled with an array of static rules IDs or an empty array if there are no disabled rules. If the request fails, the promise is rejected with an error message.

h2

Browser compatibility