I run Mozilla with a program called No Script that pretty much takes care of all of that unwanted stuff.