為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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.