In Safari, if one wishes to block image, javascript, Flash ads, and GIF animations, the highly rated shareware
PithHelmet may be used.
Alas, PithHelmet is Safari specific and so it does not work with FireFox.
But are there such critters that do (much) the same thing in Firefox?