搜索 | 用户支持

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

详细了解

modified default preferences do not load properly(untill firefox is reset)

  • 4 个回答
  • 2 人有此问题
  • 4 次查看
  • 最后回复者为 stewievader

more options

i am trying to modify some of the default preferences loaded by firefox , using https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/A_brief_guide_to_Mozilla_preferences (changing defaults section).

however after adding the file they will not load unless firefox is reset, though this should be necessary. same thing happens on a new profile until firefox is reset on there aswell

how do i get firefox to load these modified default preferences without having to go and reset firefox on every single user account.

i am trying to modify some of the default preferences loaded by firefox , using https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/A_brief_guide_to_Mozilla_preferences (changing defaults section). however after adding the file they will not load unless firefox is reset, though this should be necessary. same thing happens on a new profile until firefox is reset on there aswell how do i get firefox to load these modified default preferences without having to go and reset firefox on every single user account.

由stewievader于修改

所有回复 (4)

more options
more options

no i can save preferences just fine whether its in the default options menu or about:config.

the problem is when i place an all_xxxx.js file with modified default preferences in (install_directory/defaults/prefs/) Firefox does not load these modified pref's unless i use reset firefox under troubleshooting information. once i do that it loads the file just fine,but has to be done for every user account

since im unfamiliar with this its possible i misunderstood/messed up something, so heres a copy of that js file

more options

Files placed in /defaults/prefs/ are only copied to a newly created profile, so this behavior is to be expected.

If you want to modify prefs directly for all profiles then you need to use a mozilla.cfg file in the main Firefox program folder.


Use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.

Place a file local-settings.js in the defaults\pref folder where you also find the file channel-prefs.js to specify using mozilla.cfg.

pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0); // use this to disable the byte-shift

See:

These functions can be used in the mozilla.cfg file:

defaultPref();  // set new default value
pref();         // set pref, but allow changes in current session
lockPref();     // lock pref, disallow changes

由cor-el于修改

more options

thanks,then that article needs to be changed...it states that it applys over new and existing profiles.