declarativeNetRequest.getAvailableStaticRuleCount
Returns the number of static rules that can be activated before the global static rule limit is reached. See static ruleset limits for more information on the static ruleset and rule limits.
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
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
getAvailableStaticRuleCount |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.