declarativeNetRequest.getAvailableStaticRuleCount

Returns the number of static rules that can be activated before the global static rule limit is reached.

Syntax

js

let count = await browser.declarativeNetRequest.getAvailableStaticRuleCount();

Parameters

This function takes no parameters.

Return value

A Promise fulfilled with a number that indicates how many static rules can enable before the global static rule limit is reached. If the request fails, the promise is rejected with an error message.

Examples

Browser compatibility

BCD tables only load in the browser