In addition to NoScript and Ghostery you can make use of a restrictive hostsfile.
I wrote a script to automatically set up a hostsfile consisting of several well-known blacklists (like www.someonewhocares.org)
You can add more blacklists to the script if you like, or blacklist, whitelist some hosts yourself. Sometimes it is too restrictive, so you will need to whitelist some hosts (e.g. dropbox.com)
At this moment I block around 300.000 hosts and the script works fine. I get an update nearly every day.
If you want to make use of the script, it is in this thread:
http://ubuntuforums.org/showthread.php?t=2048812
Bookmarks