Others have mentioned what Firefox/etc do, but another option is a PiHole. If you can't look up the IP for an advertiser URL, you don't load the JavaScript to begin with.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments