研究了一下,Firefox是可以覆盖全局设置的
These functions can be used in the mozilla.cfg file:
defaultPref(); // set new default value
pref(); // set pref, allow changes in current session
lockPref(); // lock pref, disallow changes
在安装目录下创建一个文件,比如mozilla.cfg,并使用上文提到的lockPref()或者defaultPref()
//
defaultPref("browser.startup.homepage", "about:home");
之后,在安装目录\defaults\pref\下新建一个文件,名为local-settings.js,用来加载mozilla.cfg的设置
//
pref("general.config.obscure_value", 0); // only needed if you do not want to obscure the content with ROT-13
pref("general.config.filename", "mozilla.cfg");
首行需要空出来,因为"The parser ignores the first line of this file under the assumption that it was made unparseable on purpose 'to protect the privacy of the JavaScript preferences file from loading by the browser'".
重启浏览器可以发现默认设置已经被覆盖,这下应该不会有主页和新标签页被强改的问题了

自定义网址也变成了空的,不过仍然不能记住,应该是原版的特性吧
