| Type | Object |
|---|---|
| Mandatory | No |
| Manifest version | 2 |
| Example |
|
Specify static rulesets for use with declarativeNetRequest.
| Type | Object |
|---|---|
| Mandatory | No |
| Manifest version | 2 |
| Example |
|
Specify static rulesets for use with declarativeNetRequest.
The "declarative_net_request" key is an object that must contain the "rule_resources" property, an array that must include at least one object with these properties:
| Name | Type | Description |
|---|---|---|
"id" |
String |
A non-empty string uniquely identifying the ruleset. IDs beginning with '_' are reserved for internal use. |
"enabled" |
Boolean |
Whether the ruleset is enabled by default. |
"path" |
String |
The path of the JSON ruleset relative to the extension directory. See the Rules section of the `declarativeNetRequest` API for information on the content of the ruleset JSON file. |
"declarative_net_request" : {
"rule_resources" : [{
"id": "ruleset_1",
"enabled": true,
"path": "rules_1.json"
}, {
"id": "ruleset_2",
"enabled": false,
"path": "rules_2.json"
}]
}
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
declarative_net_request |
84 | 84 | No | ? | 70 | 15 | ? | ? | No | ? | 15 | ? |
rule_resources |
84 | 84 | No | ? | 70 | 15 | ? | ? | No | ? | 15 | ? |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/declarative_net_request