Galeon and blocking flash adverts

The 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;
}

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • blogmarks
  • LinkedIn
  • MySpace
  • Slashdot
  • StumbleUpon
  • Technorati
  • Propeller
  • Reddit
  • Twitter

 

3 Responses to “Galeon and blocking flash adverts”

  1. Colin Says:

    Wow, that's a great idea :)
    I didn't think of it and was looking for a way to do that since a while!

    Using Mozilla Firefox Mozilla Firefox 1.0.8 on Ubuntu Linux Ubuntu Linux
  2. higuita Says:

    in firefox you have a extension to do this… flashblock

    it replaces the flash with a play button, if you want to play see the flash, just press play, if you dont, leave it and all you will see is the empty space with the play

    it have sites whitelist so you can exclude some sites from being filtered

    dont know if galeon support the firefox extension, but it can probably be migrated to it
    mostly recommended

    Using Dillo Dillo 0.8.6
  3. Matej Cepl Says:

    of course, block flash is available in epiphany-extensions as well :-)

    Using Epiphany Epiphany 2.18 on Fedora Linux Fedora Linux

Leave a Comment