Tagline

Anything you say will be misquoted & used against you.

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.

Enjoy!

Comment viewing options
Select your preferred way to display the comments and click "Save settings" to activate your changes.
Submitted by ETC. Indulging my inner geek (not verified) on February 8, 2004 - 7:28am.

Trackback from ETC. Indulging my inner geek:

codepoetry :: CSS Debugging Stylesheet – very nice CSS debugging bookmarklet! Works beautifully in Gecko/KHTML browsers (not tested in IE). Also from Code Poetry, a nice bit of CSS that will hide ads in Mozilla/Firebird, Safari etc. browsers…….

Submitted by Remaindered links weblog (not verified) on February 13, 2004 - 12:01pm.

Trackback from Remaindered links weblog:

Cool stylesheet that will hide most banner ads, etcc!……

Comment viewing options
Select your preferred way to display the comments and click "Save settings" to activate your changes.
User login