Skip to content

Commit

Permalink
Merge branch 'master' into agm-2125-userstyles-article-in-kb
Browse files Browse the repository at this point in the history
  • Loading branch information
el-termikael authored Oct 9, 2024
2 parents bafac56 + a239d47 commit 8e7d58c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/adguard-browser-extension/mv3-version.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The maximum number of simultaneously enabled filters is **50**.

**Dynamic rules:** a strict cap of **5,000** rules is imposed, which includes a maximum of 1,000 regex rules.

If this limit is exceeded, only **5,000 converted rules** will be applied in the following order: first allowlist, then user rules, and finally — custom filters.
If this limit is exceeded, only **5,000 converted rules** will be applied in the following order: first Allowlist, then User rules, Custom filters, and finally — Quick Fixes filter.

> **Converted rules** are rules that have been transformed
> to [DNR format] using the [declarative converter][github-declarative-converter].
Expand Down
21 changes: 9 additions & 12 deletions docs/general/ad-filtering/create-own-filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -1569,7 +1569,7 @@ preroll.ts

:::caution Restrictions

- `$hls` rules are only allowed [**in trusted filters**](#trusted-filters).
- Rules with the `$hls` modifier can only be used [**in trusted filters**](#trusted-filters).
- `$hls` rules are compatible with the modifiers `$domain`, `$third-party`, `$strict-third-party`, `$strict-first-party`, `$app`, `$important`, `$match-case`, and `$xmlhttprequest` only.
- `$hls` rules only apply to HLS playlists, which are UTF-8 encoded text starting with the line `#EXTM3U`.
Any other response will not be modified by these rules.
Expand Down Expand Up @@ -2312,7 +2312,7 @@ In case of multiple `$removeheader` rules matching a single request, we will app

:::caution Restrictions

This type of rules can be used [**only in trusted filters**](#trusted-filters).
This type of rules can only be used [**in trusted filters**](#trusted-filters).

1. In order to avoid compromising the security `$removeheader` cannot remove headers from the list below:
- `access-control-allow-origin`
Expand Down Expand Up @@ -2384,8 +2384,6 @@ Rules with `$removeheader` modifier are supported by AdGuard for Windows, AdGuar

Rules with `$removeparam` modifier are intended to strip query parameters from requests' URLs. Please note that such rules are only applied to `GET`, `HEAD`, `OPTIONS`, and sometimes `POST` requests.

`$removeparam` rules that do not have any [content type modifiers](#content-type-modifiers) will match only requests where content type is `document`.

**Syntax**

**Basic syntax**
Expand Down Expand Up @@ -2551,10 +2549,9 @@ With these rules, specified UTM parameters will be removed from any request save

:::caution Restrictions

- Rules with `$removeparam` modifier can be used [**only in trusted filters**](#trusted-filters).
- `$removeparam` rules are compatible with [basic modifiers](#basic-rules-basic-modifiers),
[content-type modifiers](#content-type-modifiers), and with `$important` and `$app` modifiers.
Rules with any other modifiers are considered invalid and will be discarded.
1. Rules with the `$removeparam` modifier can only be used [**in trusted filters**](#trusted-filters).
1. `$removeparam` rules are compatible with [basic modifiers](#basic-rules-basic-modifiers), [content-type modifiers](#content-type-modifiers), and with the `$important` and `$app` modifiers. Rules with any other modifiers are considered invalid and will be discarded.
1. `$removeparam` rules without [content type modifiers](#content-type-modifiers) will only match requests where the content type is `document`.

:::

Expand Down Expand Up @@ -2633,7 +2630,7 @@ http://regexr.com/3cesk
:::caution Restrictions
Rules with `$replace` modifier can be used [**only in trusted filters**](#trusted-filters).
Rules with the `$replace` modifier can only be used [**in trusted filters**](#trusted-filters).
:::
Expand Down Expand Up @@ -2728,7 +2725,7 @@ the request to `https://example.com/firstpath` will be blocked.
:::caution Restrictions
Rules with the `$urltransform` modifier can be used [**only in trusted filters**](#trusted-filters).
Rules with the `$urltransform` modifier can only be used [**in trusted filters**](#trusted-filters).
:::
Expand Down Expand Up @@ -4157,7 +4154,7 @@ In other cases it is better to change the original rule, using domain restrictio
:::caution Restrictions
JavaScript rules can be used [**only in trusted filters**](#trusted-filters).
JavaScript rules can only be used [**in trusted filters**](#trusted-filters).
:::
Expand Down Expand Up @@ -4286,7 +4283,7 @@ Trusted scriptlets are not compatible with other ad blockers except AdGuard.
:::caution Restrictions
Trusted scriptlets rules can be used [**only in trusted filters**](#trusted-filters).
Trusted scriptlets rules can only be used [**in trusted filters**](#trusted-filters).
:::
Expand Down

0 comments on commit 8e7d58c

Please sign in to comment.