Some sites can be fooled using tools such as uMatrix which block elments at finer granular level, but is tedious to configure and not very friendly to non technical users. If I can't stop junk on a site that way, unless the information is really vital, I usually close the tab and forget about it.