AdBlock (and AdBlock Plus, its successor), two Firefox extensions can use a list of regex to block ads from webpages.
I put here a link to a good list (
http://adblock.free.fr/adblock.txt), which can be useful to people wanting to retrieve lare bunch of sites, without following ads and stats links.