Skip to content

Commit

Permalink
fix mv3-version code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaleleka authored Sep 26, 2024
2 parents c5bc9e5 + 1219760 commit c1c00d7
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions docs/adguard-browser-extension/mv3-version.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,33 +66,33 @@ If this limit is exceeded, only **5,000 converted rules** will be applied in the
Here's how a rule with a basic modifier is converted to a declarative rule:

```bash
||example.org^$script,third-party,domain=example.com
```
```adblock
||example.org^$script,third-party,domain=example.com
```

is converted to

```bash
[
{
"id": 1,
"action": {
"type": "block"
},
"condition": {
"urlFilter": "||example.org^",
"domainType": "thirdParty",
"initiatorDomains": [
"example.com"
],
"resourceTypes": [
"script"
]
},
"priority": 302
}
]
```
```json
[
{
"id": 1,
"action": {
"type": "block"
},
"condition": {
"urlFilter": "||example.org^",
"domainType": "thirdParty",
"initiatorDomains": [
"example.com"
],
"resourceTypes": [
"script"
]
},
"priority": 302
}
]
```

More examples can be found on [GitHub][github-declarative-converter-examples].

Expand Down

0 comments on commit c1c00d7

Please sign in to comment.