From 5f87989ba10b4d8a762acd05191866b7d14d52d7 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 26 Sep 2018 07:28:52 -0400 Subject: [PATCH] Updated Procedural cosmetic filters (markdown) --- Procedural-cosmetic-filters.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`