Skip to content

Commit 3a1b46f

Browse files
committed
add non-basic-path-modifier-limitations section
1 parent b54e150 commit 3a1b46f

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

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

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4696,8 +4696,8 @@ this: `\]`.
46964696
| --- | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
46974697
| [$app](#non-basic-app-modifier) | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
46984698
| [$domain](#non-basic-domain-modifier) | ✅ | ✅ | ✅ [*[1]](#non-basic-domain-modifier-limitations) | ✅ | ✅ | ✅ | ❌ |
4699-
| [$path](#non-basic-path-modifier) | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ |
4700-
| [$url](#non-basic-url-modifier) | ✅ | ✅ [*[2]](#non-basic-url-modifier-limitations) | ✅ [*[2]](#non-basic-url-modifier-limitations) | ✅ [*[2]](#non-basic-url-modifier-limitations) | ❌ | ❌ | ❌ |
4699+
| [$path](#non-basic-path-modifier) | ✅ | ✅ [*[2]](#non-basic-path-modifier-limitations) | ❌ | ✅ [*[2]](#non-basic-path-modifier-limitations) | ✅ | ✅ | ❌ |
4700+
| [$url](#non-basic-url-modifier) | ✅ | ✅ [*[3]](#non-basic-url-modifier-limitations) | ✅ [*[3]](#non-basic-url-modifier-limitations) | ✅ [*[3]](#non-basic-url-modifier-limitations) | ❌ | ❌ | ❌ |
47014701
47024702
:::note
47034703
@@ -4788,6 +4788,17 @@ If `pattern` is not set for `$path`, rule will apply only on the main page of we
47884788
- `[$domain=example.com,path=/page.html]##.textad` hides a `div` with the class `textad` at `page.html` of `example.com` and all subdomains but not at `another_page.html`
47894789
- `[$path=/\\/(sub1|sub2)\\/page\\.html/]##.textad` hides a `div` with the class `textad` at both `/sub1/page.html` and `/sub2/page.html` of any domain (please note the [escaped special characters](#non-basic-rules-modifiers-syntax))
47904790
4791+
#### `$path` modifier limitations {#non-basic-path-modifier-limitations}
4792+
4793+
:::caution Limitations
4794+
4795+
In AdGuard Browser Extension, non-basic `$path` modifier is compatible with
4796+
other non-basic modifiers only when it is placed last,
4797+
e.g. `[$domain=/example.(com|org)/,path=/foo]##.ad`,
4798+
otherwise it may not work as expected.
4799+
4800+
:::
4801+
47914802
:::info Compatibility
47924803
47934804
Rules with `$path` modifier are not supported by AdGuard Content Blocker.

0 commit comments

Comments
 (0)