I have been utilizing the Brave browser to block online ads. However, certain websites have found a way to insert ads into their HTML on the server-side, bypassing my ad-blocking efforts in Brave. Currently, Brave only offers the ability to block elements by providing a CSS selector.
The specific element I am trying to block is a div
with a randomly-generated class name (making it difficult to use div.class-name
for blocking). The consistent factor is a pseudo ::before
element with the content: "from our network".
My inquiry is: is there a way to select an element based on the content of its ::before
, without resorting to JavaScript and using CSS exclusively?