Personally, I'm using uMatrix which is configured to block all 3rd party domains from loading /running code on my machine. Note that it's a bit of a hassle at first to set it up.