From 9325e8c2d2eeb44ea344b29d56a11164e5779bc8 Mon Sep 17 00:00:00 2001 From: MasterKia Date: Sun, 11 Dec 2022 00:27:59 +0330 Subject: [PATCH] Add note to :remove-attr()/:remove-class() --- Static-filter-syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static-filter-syntax.md b/Static-filter-syntax.md index bb0a9b6..16204db 100644 --- a/Static-filter-syntax.md +++ b/Static-filter-syntax.md @@ -746,7 +746,7 @@ Styling filters frequently get used to foil anti-blocker mechanisms on web pages - Description: _action operator_, instruct to remove attribute(s) or class(es) from DOM tree node(s) instead of just hiding them. - Chainable: No, _action operator_ can only apply at the end of the root chain. -- _subject_: Can be a plain CSS selector or a procedural cosmetic filter. Use [`:watch-attr()`](https://github.com/uBlockOrigin/uBlock-issues/wiki/Procedural-cosmetic-filters#subjectwatch-attrarg) to tell the operator to stay and act on attribute/class changes, while the default behavior is to act only when nodes in sub-tree are added or removed. +- _subject_: Can be a plain CSS selector or a procedural cosmetic filter. Use [`:watch-attr()`](https://github.com/uBlockOrigin/uBlock-issues/wiki/Procedural-cosmetic-filters#subjectwatch-attrarg) to tell the operator to stay and act when attributes/classes change without layout changes, while the default behavior is to act only when nodes in sub-tree are added or removed. - Examples - `userscloud.com##.btn-icon-stacked:remove-attr(onclick)` - `magesy.*,majesy.*##*:remove-attr(oncontextmenu)`