Skip to content

Commit 58b4338

Browse files
authored
AG-41962 update replace modifier section
2 parents 82752cd + b1d5ad1 commit 58b4338

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/general/ad-filtering/create-own-filters.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2797,8 +2797,7 @@ You will need some knowledge of regular expressions to use `$replace` modifier.
27972797
**Features**
27982798

27992799
- `$replace` rules apply to any text response, but will not apply to binary (`media`, `image`, `object`, etc.).
2800-
- `$replace` rules do not apply if the size of the original response is more than 10 MB.
2801-
- `$replace` rules have a higher priority than other basic rules (**including** exception rules). So if a request natches two different rules, one of which has the `$replace` modifier, this rule will be applied.
2800+
- `$replace` rules have a higher priority than other basic rules, **including** exception rules. So if a request matches two different rules, one of which has the `$replace` modifier, this rule will be applied.
28022801
- Document-level exception rules with `$content` or `$document` modifiers do disable `$replace` rules for requests matching them.
28032802
- Other document-level exception rules (`$generichide`, `$elemhide` or `$jsinject` modifiers) are applied alongside `$replace` rules. It means that you can modify the page content with a `$replace` rule and disable cosmetic rules there at the same time.
28042803

@@ -2853,7 +2852,9 @@ http://regexr.com/3cesk
28532852
28542853
:::caution Restrictions
28552854
2856-
Rules with the `$replace` modifier can only be used [**in trusted filters**](#trusted-filters).
2855+
- Rules with the `$replace` modifier can only be used [**in trusted filters**](#trusted-filters).
2856+
- `$replace` rules do not apply if the size of the original response is more than 10 MB.
2857+
For AdGuard Browser Extension, this limit applies starting from v5.2 or later.
28572858
28582859
:::
28592860

0 commit comments

Comments
 (0)