Blocking tags that have children with class or text

archiemoses

New Member
Surprised that I can't find this by searching...

twitter.com, <Article> tag that has child div containing text 'Promoted' or perhaps some other keys.
These divs with the search text have a class .css-9010a0 for what it's worth, but don't want to blanket block on that class because some are useful.

Been trying things like:

Code:
twitter.com#$#article:has(div:has-text(/Promoted/)) { visibility: hidden; height: 0 !important; }
But my CSS is super rusty...
 

Blaz

Moderator & Translator
Staff member
Moderator
Twitter.com#?#article:has(div:contains(Promoted))

Please note promoted elements should be already hidden by our normal filters. If on iOS you need to enable Advanced protection.
 

archiemoses

New Member
Hey thanks, you're right it should have been blocked.
Problem - using experimental Orion (Safari) browser with FF extension installed.
 
Top