Get an adblocker plugin for chrome (does it have add-ons? I think it does) or firefox
aka internet explorer sux
AdBlock Plus and NoScript for Firefox/SeaMonkey? That's the setup I'm using right now, haven't gotten over to Mediafire to test it, though. It should, in theory, work very well at blocking ads and the popups.
The only problem is that you have to allow trusted scripts from every site you go to the first time around.