Galeon and blocking flash adverts
Friday, April 28th, 2006The Galeon browser has the great image-blocker feature, (which has since become more common in other browsers), enabling the blocking of advert-serving sites. Unfortunately, flash adverts have become more and more widely used and cannot be blocked using the image-blocker feature, and these flash adverts, with the moving images and other gimmicks, can be incredibly irritating. They were irritating for me until yesterday, when I discovered a method to block them. Sure, I could have just uninstalled the shockwave-flash plugin, but very, (very), occasionally flash does serve some valid purpose, (although an example of such a purpose escapes me at present), so I prefer to keep it installed.
Here is the method, it is not foolproof, but it suffices in the absense of any better solution:
Create (or edit) the file ~/.galeon/mozilla/galeon/chrome/userContent.css and copy/paste the following code into it.
/* hide flash banner adverts */ embed[type="application/x-shockwave-flash"][width="468"][height="60"] { display: none !important; visibility: hidden !important; } embed[type="application/x-shockwave-flash"][width="728"][height="90"] { display: none !important; visibility: hidden !important; } embed[type="application/x-shockwave-flash"][width="300"][height="250"] { display: none !important; visibility: hidden !important; }



























