Twitch generates random class names, possibly to prevent your blocking some elements, so I tried to find the topmost classes.
I don't use Twitch, so I'm not sure what these rules are blocking, but if there's any bit of consistent text in the elements these are targeting, you can do something like
twitch.tv##div:has-text(Text To Block):xpath(../..)
There may be ways around this, ie here's the lengths Facebook go to write the word "Sponsored":
Last time I took a peek at it, they were changing up the order of the letters in “Sponsored” in the HTML and using some front end shenanigans to reposition the letters to spell out the word. Pretty devious, but I do wish we were spending mankind’s geniuses on this kind of thing.
Looking back at my adblock rules[1], FB used to use `aria-label=Sponsored`. Seems they stopped doing that, most likely because it was crazy simple to target and remove.
Comments
I don't use Twitch, so I'm not sure what these rules are blocking, but if there's any bit of consistent text in the elements these are targeting, you can do something like
There may be ways around this, ie here's the lengths Facebook go to write the word "Sponsored":Last time I took a peek at it, they were changing up the order of the letters in “Sponsored” in the HTML and using some front end shenanigans to reposition the letters to spell out the word. Pretty devious, but I do wish we were spending mankind’s geniuses on this kind of thing.
I bet screen readers love that
Hmm if it's actually impacting screen readers this is an ADA violation probably.
Looking back at my adblock rules[1], FB used to use `aria-label=Sponsored`. Seems they stopped doing that, most likely because it was crazy simple to target and remove.
[1]: https://github.com/mikew/adblock-rules/blob/ed8f0b0511d66c44...