I was over at Michel V’s site (creator of b2) last night and found some great code for hiding banner ads (images and flash) with Mozilla based browsers like Chimera (for Mac OS X) and Phoenix (for Windows). I extended it just a little, making it block a few more images sizes that I see on Yahoo! a lot. This fix is really nice in that it functionally removes the image from the page ( style="display: none;" ) which means that the rest of the content can move up or over when the ad is gone. Here is the code I’m using:
/* this hides the usual 468x60 Flash banner ads */ embed[type="application/x-shockwave-flash"][width="468"][height="60"] { display: none !important; visibility: hidden !important; } /* this hides the not so usual but very annoying 728x90 Flash banner ads */ embed[type="application/x-shockwave-flash"][width="728"][height="90"] { display: none !important; visibility: hidden !important; } /* adding more conditions to block Yahoo! ads */ embed[type="application/x-shockwave-flash"][width="300"][height="250"] { display: none !important; visibility: hidden !important; } embed[type="application/x-shockwave-flash"][width="120"][height="600"] { display: none !important; visibility: hidden !important; } img[width="468"][height="60"] { display: none !important; visibility: hidden !important; } img[width="728"][height="90"] { display: none !important; visibility: hidden !important; }
In Chimera, I created a new file with these contents and saved it here:
/[Your HD Name]/Users/[Your User Name]/Library/Application Support/Chimera/Profiles/Default/[some weird folder name.slt]/chrome/userContent.css
Thanks Michel, very good stuff.
I just found a Mac OS X build of Phoenix here. Very cool, it even includes the google search bar! I hope Kevin will release a build based on the 0.5 Phoenix release as well.
His Pinstripe Theme for Mozilla is very slick too, I might even use Mozilla again a little now that it looks so nice.
Seems that IE uses just slightly less memory than Mozilla and Chimera, but it renders more slowly.
The userContent.css I made for Chimera also works (as expected) with Mozillla.
I will try to put together a build of Phoenix 0.5 when it comes out. The builds I’ve made in the past few weeks crash on startup so hopefully it will work when 0.5 rolls around. Thanks for the compliments Alex!