You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/general/ad-filtering/create-own-filters.md
+31-1Lines changed: 31 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4261,6 +4261,8 @@ The syntax with an optional `value` in the attributes is supported by AdGuard fo
4261
4261
4262
4262
### Syntax
4263
4263
4264
+
Syntax supported by AdGuard for Windows, AdGuard for Mac, AdGuard for Android, AdGuard for Linux with CoreLibs, and AdGuard Browser Extension prior to v5.2:
- **`pseudoArgs`** — the arguments of a function-style pseudo-class.
4279
4281
- **`combinator`** — an operator that works similarly to the [CSS child combinator](https://developer.mozilla.org/en-US/docs/Web/CSS/Child_combinator): that is, the `selector` on the right of the `combinator` will only match an element whose direct parent matches the `selector` on the left of the `combinator`.
4280
4282
4283
+
Syntax supported by AdGuard Browser Extension v5.3 or later:
4284
+
4285
+
```text
4286
+
rule = [domains] "$$" selector
4287
+
domains = [domain0, domain1[, ...[, domainN]]]
4288
+
```
4289
+
4290
+
- **`selector`** — [CSS selector](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_Started/Selectors), defines the element(s) to be removed from the HTML code before the page is loaded.
4291
+
- **`domains`** — domain restriction for the rule. Same principles as in [element hiding rule syntax](#cosmetic-elemhide-rules).
4292
+
4293
+
:::caution Limitations
4294
+
4295
+
The following limitations apply to AdGuard Browser Extension v5.3 and later:
4296
+
4297
+
- Pseudo-elements (e.g., `::before`, `::after`) are not supported, as they are not applicable in the context of HTML filtering.
The `:contains()` pseudo-class is supported by AdGuard for Windows, AdGuard for Mac, AdGuard for Android, and AdGuard for Linux with [CoreLibs] v1.13 or later.
4476
+
The `:contains()` pseudo-class is supported by AdGuard for Windows, AdGuard for Mac, AdGuard for Android, AdGuard for Linux with [CoreLibs] v1.13 or later, and AdGuard Browser Extension v5.3 or later.
4449
4477
4450
4478
:::
4451
4479
@@ -4455,6 +4483,8 @@ Requires that the inner HTML of the element contains the specified text or match
4455
4483
4456
4484
A `:contains()` pseudo-class must not appear in a selector to the left of a `>` combinator.
4457
4485
4486
+
This limitation does not apply to AdGuard Browser Extension v5.3 or later.
0 commit comments