Try RequestPolicy. It blocks all requests to domains other than the host's, unless you whitelist them. It comes with optional whitelists you can use for popular sites.
On one hand, it's cumbersome, requiring you to whitelist some requests and reload when you visit a new webpage (most sites require a CDN at least). On the other, it's easy to use and good security.