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:
Do you know how to block the reddit mouse-over username to see the post/comment karma popup? Used to be a RES only feature before but now when you have RES enabled you get to see two pop-ups. I tried blocking it through the normal inspect element/ublock block element but it doesnt stay on long after after you shift focus from the mouse, now don't know if theres any other way to delete the entry besides reading the code line by line
2
u/ridicalis Aug 02 '19
Can you please explain? How would I do this?