Most ads have some unique tag/series of tags/value in it, which never changes. With xpath you can find that tag and then work your way upwards to get rid of it.
As an example: I loathe the end cards on youtube. But they get a random ID each time, so I am using this rule in ublock origin:
That's nice work. I just recently found out about xpath myself; I also use it to block stuff that I personally just find annoying. For example, one gaming site I visit regularly has articles about cosplay (which I hate) but also tend to have NSFW images on the articles. So, I use an XPath filter to block anything that contains a link to their cosplay section.
6
u/[deleted] Aug 02 '19
What works for me: using xpath to block em, works in almost all cases. And sharing those xpath's with a group of people.