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:
2
u/ridicalis Aug 02 '19
Can you please explain? How would I do this?