I knew this worked in Gecko-based browsers and now I’m just plain happy it works in Safari (as of the cough latest cough version) and, I would assume, other KHTML browsers.Take the stylesheet you see below and paste it into a file called userContent.css and put it in your Gecko-based program’s chrome folder, located in a place similar to preferences /Profiles/ name / gibberish /chrome/. For Camino/Chimera that’s /Users/ name /Library/Application Support/Chimera/…
Once that’s done go into the cough latest cough version of Safari and set your user stylesheet to the file you made above (or if you only use Safari (brave) then just save that file anywhere and do this).
How this works: If you look at the file and know anything about HTML or CSS you can see what it’s doing, but for the rest of the world it just searches the source of a graphic or link for anything that resembles an ad and then turns the display of that item off. Does it still load it? Haven’t checked, but since it’s in CSS and not altering the HTML, some browsers might still load it. This means, of course, webmasters will get the display for the ad and you won’t see it. I tend to think that’s the best way. =)
Note that you can remove the ‘x’ in front of ‘IMG’ to block any images that use image maps, which some ads do. There’s just one caveat: things like User Friendly’s “beggin’ strips” are not blocked because he’s just smart like that, but the image map that goes from one page to another is blocked if you do this. So on one hand there’s the usefulness of image maps and on the other the unusefulness of ads. I chose the former, you might the latter, so try it both ways and see what you miss.

Trackback from ETC. Indulging my inner geek:
Trackback from Remaindered links weblog: