«•»


Adblock Solution for Safari 4 (Windows and Mac)

Date February 25, 2009 : Permalink :

Safari Adblock While there isn’t a native Ad Blocker in Safari 4, I was able to clean up most websites by using Fanboy’s Element Hider stylesheet1 to collapse the advertisement elements.

Here are the steps to setting up the Advertisement Hider in Safari 4:

Step 1: Download Fanboy’s Element Hider CSS file and save it to the Safari profile (or any folder of your choosing).

Step 2: Launch Safari4, go to Preferences -> Advanced -> Style Sheet -> Other… and select the fanboy-adblocklist-elements.css file you just saved.

Note: I am aware of 3rd party tools like Proximity to block ads but I prefer using a browser-specific solution. If you have a better way of handling ads in Safari, please share your ideas in the comments.

  1. The Element Hider is part of an excellent, lightweight Adblock List maintained by Fanboy and available for Opera (my primary browser).  It is made up of two parts: (1) a urlfilter.ini replacement file that catches the ads before they are loaded and (2) an element hider .css file that colapses the ad space so that the webpage looks cleaner. []
  • TJ In Phoenix
    BTW - I forgot - thanks as it works perfectly and simply.
  • TJ In Phoenix
    If websites were more responsible with their ads and layout design, we wouldn't be forced to use tools like this. Facebook, MySpace, and the ZDNet pages are examples of poor ad placement and saturation. And, I don't care how many millions of hot chicks want to meat me in Fargo, ND...
  • Luke
    I'm using Safari 4.0.4 on Vista x64. And this works wonderfully. Thanks
  • nice! worked instantly, no browser restart or anything! thanks so much, i'd say that you're an expert programmer!
  • PäRä
    This is of major help, it blows firefox out of the water now with this. Ad's were the last thing annoying me with Safari, now this I enjoy thank you!
  • Scott
    The ONE thing that's consistently kept me from using Safari, my favorite browser (Camino), and the rest, and finally landed me semi-permanently with Firefox, is lack of an ad blocking solution that doesn't require going into prefs, or restarting the browser every time i make a small change.

    For two different periods of time i attempted to use Privoxy, but it's UI, if you can even call it that, is the most user unfriendly load of garbage i've ever seen. It's focus is in the wrong place anyway.
  • hims2in2
    works like magic ! All the ads are gone..thanks a lot :)
  • http://pseudo-flaw.net/content/adblock/

    is adblocking immoral? piss off. Having to view them without choice is immoral!

    This is sweet - Google sponsored link are gone now!
  • entropiness
    Thanks, this works really well, but it's blocking some things that I don't want it to. For example, on Myspace, when you hover over your friends a box should pop-up where you can send them a message or a comment. Is there any way around this?
  • The easiest way to resolve it for good would be to inform the author of the adblocker script (via the Fanboy Forums) so it can be fixed in the next release.
blog comments powered by Disqus