为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Change what is default value of about:config preference ?

  • 8 个回答
  • 1 人有此问题
  • 7 次查看
  • 最后回复者为 John99

more options

I know how to change an about:config preference, but the value is not really changed. What is done is an addition of a new value, that is used instead of the default one, to prefs.js file. I would like to change what is default.

Example:

         change   "geo.enabled   default   boolean   true"
         to   "geo.enabled   default   boolean   false"

, as seen in about:config.

I know how to change an about:config preference, but the value is not really changed. What is done is an addition of a new value, that is used instead of the default one, to prefs.js file. I would like to change what is default. Example: change "geo.enabled default boolean true" to "geo.enabled default boolean false" , as seen in about:config.

由user1160500于修改

所有回复 (8)

more options

hi FRHR, you can right-click any preference and reset it to its default value this way.

more options

Yes, but I want to change what Firefox considers default.

more options

To what end?

more options

Default preference values are part of the program code. There's not any (easily) editable file to change.

If your Firefox has a problem retaining customized settings in prefs.js, please see this article for suggestions: How to fix preferences that won't save.

If this is for rolling out Firefox in a business setting, there are some tools to pre-set preferences (but they still don't change the program's internal defaults).

more options

Hello to all,

as jscher2000's said ......Default preference values are part of the program code. There's not any (easily) editable file to change....

see also the option to lock the preference.


thank you

more options

See also http://kb.mozillazine.org/user.js_file as a Preference setting there can override the change made to the Preference in Options/Preferences or about:config after Firefox is closed.

more options

Thank you all, I searched for editing the program code but it was to hard to manage. I asked the question because I edited preferences a lot for privacy and security reasons and realized that alternate preferences in prefs.js and, if existing, user.js slow down Firefox since they are loaded separately from default ones and changed afterwards. I'll try to reduce the number of edited preferences by regular refresh (preferences left over from removed add-ons) and by editing as globally as possible with the smallest number of changed preferences.

more options

It would surprise me if changing prefs itself directly slows down a Firefox startup. More likely the effects of those pref changes slow down Firefox or its startup.

I would anticipate Firefox startup or running may if anything be faster if the pref geo.enabled is false.

If you are security conscious and using Firefox in a none default configuration one thing you may be doing is ensuring History is cleared on closedown. Hopefully any problems with that are resolved, but there have certainly been issues in recent Firefox versions where that option did sometimes cause problems at cloesedown, and possibly a knock-on effect at startup. Some of those problems could have been hangs or crashes and would definitely impact badly on startup times.

I know that is not what you were asking about but if you have problems with startup times maybe it is something to think about. Maybe it is one factor you should change and compare what the before and after results are.