declarativeNetRequest.getDynamicRules

Returns the set of dynamic rules for the extension.

Syntax

js

let gettingDynamicRules = browser.declarativeNetRequest.getDynamicRules();

Parameters

This function takes no parameters.

Return value

A Promise is fulfilled with an array of declarativeNetRequest.Rule objects. Each of these represents a rule that belongs to the extension. If no rules are active, the array is empty. If the request fails, the promise is rejected with an error message.

Examples

Example extensions

Browser compatibility

BCD tables only load in the browser