Is it possible to disable ads on sites through a browser?

Someone said that Firefox had an option like that but I have been using firefox for such a long time and have noticed anything like that.