It’s obviously inevitable for many web sites, but I can’t imagine how painful it must be for a web designer to see a dear project blemished by advertisements. I assume the pain is prominent for users as well, it is for me at least. Ads occupy valuable real estate in my browser window, they’re extra bytes I have to download and rarely is an ad something that pleases my eyes. In short, they’re (f)ugly.
So, now that I have this blog as a part of the HUIN105 course anyway, it seems fitting to write a little tutorial for something I’m pretty passionate about: Blocking ads on websites.
Blocking ads with Firefox and Adblock Plus
Ads are virtually everywhere on the web and they can appear in any type of format. One popular way to serve ads is through Flash animations. In addition to being extra annoying, these ads often hog a significant amount of your computer’s resources.
So, Flash animations and other ad types are annoying and we need a way for the browser to filter this content out. The most complete and usable ad-blocking solution is the combination of the Adblock Plus and the Adblock Plus: Element Hiding Helper addons for the Firefox browser.
Adblock Plus let’s you subscribe to maintained lists of known ad sources and does a very good job of blocking out of the box.

Above is a screenshot of Aftenposten.no with and without Adblock Plus enabled. As you can see, all but one ad were successfully blocked. Additionally, the filesize of the complete web page went down from 1.7 MB to 1.2 MB. That’s 30% less bandwidth I have to use, and (I assume) 30% faster rendering of the page.
However, along with the ad that didn’t get blocked, there’s still some unwanted white-space left from the blocked ads we want to get rid of. This is where the Element Hider Helper comes in. This addon lets us select elements in the page we don’t want displayed and then tells Adblock Plus to block that as well.

This is what the page looks like after I’ve removed unblocked ads and the white-space left in from the blocked ads.
It gets even better. For each element you select with the Element Hider Helper it asks you if you want the element to be blocked on the specific page only, or on any domain. So when you see that an element with an id like “advertisements” or “ads-top” you can easily tell Adblock to filter such elements out for every page you visit in the future.
Blocking even more unwanted content
OK, so we’ve gotten rid of all the ads. There’s still plenty of content on web sites I never use and have no interest of seeing. A good example is the article page on Dagbladet.no. In the picture below you’ll see that I have reduced an article page down to the bare minimum.

All that’s left is the actual article and it’s photographs. With all that secondary content I don’t need removed, I think the page is much more aesthetically pleasing. And I’m willing to bet a fair amount of my student loan that the web designer at Dagbladet would agree with me.
If you’re not interested in Firefox (why wouldn’t you be?) other browsers have similar, though inferior, features. Opera has built-in content blocking and there’s an ad blocking plugin for Safari.
Recent comments