Block facebook
The easier thing to do is just block all Facebook domains in your hosts file. The most annoying ads come from the Facebook network, and as a bonus you block all of those privacy-invading trackers. Obviously you can't log into their site anymore either, but that's a feature, not a bug. And it works with every browser, every time.