site
stats
2 min read

Firefox 优化指南 第一季-在开始之前必须知道的

今天有位朋友说,总感觉Ubuntu下的Firefox很慢,尽管关掉所有插件,浏览起来所有网页都感觉有些慢。很久没有捣腾Firefox了,就在这里做个小指南吧。

Firefox的内部配置管理,鼠标可以点出来的Tools > Options menu;仅仅是冰山一角。实际上Firefox将很多参数的设置都放到了一个prefs.js文件中,而且您不需要手动来编辑这个文件,在浏览器中输入about:config就可以了。你会看到一个大大的保证书,要你注意,所有的高级修改有可能会影响稳定性。你必须点击"I'll be careful. I promise!" 才能够继续。OK,大概你已经意识到修改这个是有风险呢,那么我们就先备份一下原有配置吧。

prefs.js的放置位置列表:

In Linux it's
~/.mozilla/firefox/<profile ID>.default/

In Mac OS X, the profile folder is
<username>/Library/Application Support/Firefox/Profiles/<profile ID>.default/

In Windows XP, the profile folder is
\Documents and Settings<em><username>\Application Data\Mozilla\Firefox\Profiles<em><profile ID>.default</span>

In Windows Vista, this folder is
\Users<em><username>\AppData\Roaming\Mozilla\Firefox\Profiles<em><profile ID>.default</span>


修改的时候需要注意,不管是什么参数,只有 string (text), integer (number) or Boolean (true/false)三种属性值。

那么现在的问题就是到底改什么才能提高速度了。后面我根据网上的一篇《Hacking Firefox:: The secrets of about:config》文章来给大家介绍如何修改和告诉你为什么,这才是文章的意义。不知道为什么的教程,实在不知所云。

整个指南的参数不一定已经存在在你的配置中,如果没有这些属性,你就自己创建出来。

下面就让我们开始吧~!