I use an add-on for Firefox call NoScript. Basically lets you authorize/deauthorize what scripts sites can run. Comes in really handy for forums, albeit initially cumbersome as you have to configure the add-on for each site you frequent (i.e. allow pprune.org, block google, etc.).