I have a set of pieces of content, each organized exactly like this:
<grandgrandparent>
<parent1>
<key>
</key>
</parent1>
<grandparent>
<parent2>
<key>
<child>
<key>
<grandchild>
<grandgrandchild1>
</grandgrandchild1>
<grandgrandchild2>
KEY
</grandgrandchild2>
</grandchild>
</key>
</child>
</key>
<parent2>
<grandparent>
<grandgrandparent>
How can I hide the entire grandgrandparent
or at least the largest sub-part of it--but only for those grandgrandparents where the key
value (or string) are matched to some criteria?
The key difficulty is that Safari still doesn't support :has()
. It's even unclear what Level 4 constructs are actually supported for Safari Content Blockers.
And removing only the deepest elements directly matching the criteria still keeps a major part of content that needs to be removed.