Turning off JS goes a long way towards avoiding most of the ad/popup problem. I just turn it off for bad sites, keep it on for most.