Customizing websites with Firefox

With Firefox you can define your preferences on how Firefox should display the web sites you visit. To do that, there’s a file called userContent.css in user home directory (in windows it’s placed on “C:\Documents and Settings\[user]\Application Data\Mozilla\Firefox\Profiles\[8digits].default\chrome”); modifying this file you can, for example, modify default font style and size, to make website more readable.

With Firefox 1.5 there’s a new selector that makes it possible to define in userContent.css web site specific style. So you can add some style definition that will be applied for specific sites. The syntax is the following:

@-moz-document url-prefix(http://www.mysite.com/)
{
   /* define here specific css for http://www.mysite.com/ */
   
   /* example:
   div.rightbox {
      display: none !important;
   }
   */
}

I think that this is a cool feature. For example, I use Adblock plugin to remove ads from my favourite web sites. Combining new css feature in userContent.css with Adblock plugin, it’s possible to filter any ad from your favourite web sites, despite they use images, flash, javascripts or simple html:

Before and after the cure
Before and After the cure: at left, in internet explorer with all ads (in red circles); at right, the same site in Firefox using custom CSS and Adblock


One Response to “Customizing websites with Firefox”  

  1. 1 Gardening Expert Blog

    Your article has proven useful to me. It’s very informative and you are obviously very knowledgeable in this area. You have opened my eyes to varying views on this topic with interesting and solid content.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Current day month ye@r *


Calendar

December 2005
M T W T F S S
« Nov   Jan »
 1234
567891011
12131415161718
19202122232425
262728293031  

Follow me

twitter flickr LinkedIn feed

Subscribe by email

Enter your email address:

Archives


Categories

Tag Cloud


Listening