mirror of https://github.com/gorhill/uBlock.git
Added several links regarding basic cosmetic filters.
parent
68e8abc29a
commit
4b4240a14c
|
@ -1153,7 +1153,7 @@ Static extended filters are all of these forms:
|
|||
[hostname(s)]##[expression]
|
||||
[hostname(s)]#@#[expression]
|
||||
|
||||
The most common static extended filters are cosmetic filters, also known as "element hiding filters" in ABP.
|
||||
The most common static extended filters are cosmetic filters, also known as "[element hiding filters](https://help.adblockplus.org/hc/en-us/articles/360062733293-How-to-write-filters#content-filters)" in ABP and "[cosmetic rules](https://adguard.com/kb/general/ad-filtering/create-own-filters/#cosmetic-rule)" in AG.
|
||||
|
||||
***
|
||||
|
||||
|
@ -1223,6 +1223,8 @@ Specific-generic cosmetic filters will NOT become discarded when checking the "I
|
|||
|
||||
### Cosmetic filters
|
||||
|
||||
For basic cosmetic filters you can refer to existing documentation from: Adblock Plus: "[element hiding filters](https://help.adblockplus.org/hc/en-us/articles/360062733293-How-to-write-filters#content-filters)", AdGuard: "[cosmetic rules](https://adguard.com/kb/general/ad-filtering/create-own-filters/#cosmetic-rule)", W3Schools: "[CSS Selectors](https://www.w3schools.com/cssref/css_selectors.php)", uBO Reddit FAQ: "[How to manually write cosmetic filter](https://www.reddit.com/r/uBlockOrigin/wiki/index/#wiki_how_to_manually_write_cosmetic_filter)".
|
||||
|
||||
#### Procedural cosmetic filters
|
||||
|
||||
`:has(...)`, `:has-text(...)`, `:matches-attr(...)`, `:matches-css(...)`, `:matches-css-before(...)`, `:matches-css-after(...)`, `:matches-media(...)`, `:matches-path(...)`, `:matches-prop(...)`, `:min-text-length(n)`, `:not(...)`, `:others(...)`, `:upward(...)`, `:watch-attr(...)`, `:xpath(...)`.
|
||||
|
|
Loading…
Reference in New Issue