Jun 23

Firefox下使用用户自定义的样式表

分类: internetazalea @ 12:46 am 211次阅读

很多网页都使用了层叠样式表(CSS),如果你厌倦了网页设计者定义的显示样式,或者你有特殊的偏好,那么用户自定义样式表可以提升你的浏览体验。

这里介绍了多种方法,可以对所有网页或特定网页使用自定义的样式表。以下步骤用于在Firefox下对所有网站使用用户自定义的样式表。

  1. 找到Firefox的profile,Linux下的默认目录是 ~/.mozilla/firefox/xxxxxxxx.default/ (xxxxxxxx是一个8位随机字符串)
  2. 在chrome子目录中, 创建一个名为userContent.css的CSS文件,编辑加入所需要的样式,比如:
    CSS:
    1. /* userContent.css */
    2. *       { color: white !important;
    3.         background-color: white !important;
    4.         font-family: Verdana, sans-serif !important; }
    5. body    { font-size: 24pt !important; }
    6. a:link { color: cyan !important; }
    7. a:visited { color: violet !important; }

  3. 保存 userContent.css文件然后重启Firefox.

相关文章


我有话要说