diff --git a/Procedural-cosmetic-filters.md b/Procedural-cosmetic-filters.md index 2bd78b4..784b146 100644 --- a/Procedural-cosmetic-filters.md +++ b/Procedural-cosmetic-filters.md @@ -25,7 +25,7 @@ Efficient procedural cosmetic filters (or any cosmetic filters really) are the o - _subject_: Can be a plain CSS selector, or a procedural cosmetic filter. - _arg_: A valid plain CSS selector or procedural cosmetic filter, which is evaluated in the context of the _subject_ element. - Examples: - - `mobile.twitter.com##main [role="region"] > [role="grid"] > [role="rowgroup"] [role="row"]:if(div:last-of-type span:has-text(/^Promoted by/))` + - `mobile.twitter.com##main [role="region"] > [role="grid"] > [role="rowgroup"] [role="row"]:has(div:last-of-type span:has-text(/^Promoted by/))` - `strikeout.me##body > div:has(img[alt="AdBlock Alert"])` - `yandex.ru##.serp-item:has(:scope > .organic > .organic__subtitle > .label_color_yellow)` - `:scope` forces `.organic` to match inside `.serp-item`[1](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll#JavaScript),[2](https://developer.mozilla.org/en-US/docs/Web/CSS/:scope) - `strdef.world##div[style]:has(> a[href="http://www.streamdefence.com/index.php"])` - `>` forces `a` to be direct descendant of `div`