Stephen Viles

31 May 2010

Removing line noise with a user style sheet

I find text with underlining or strikethough difficult to read, so I use the following user style sheet to remove it, except when hovering over links:


/*
 * This file can be used to apply a style to all web pages you view
 * Rules without !important are overruled by author rules if the
 * author sets any.  Rules with !important overrule author rules.
 */

:link, :visited {
  text-decoration : none !important ;
}
:link:hover, :visited:hover {
  text-decoration : underline !important ;
}
del {
  text-decoration : none !important ;
}
strike {
  text-decoration : none !important ;
}

In Firefox, the user style sheet file is called chrome/userContent.css in the user profile directory.

Tags: ,

Comments

You can email me at geeks#stephen.viles.geek.nz (change # to @).