Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Więcej informacji

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

  • 4 odpowiedzi
  • 2 osoby mają ten problem
  • 4 wyświetlenia
  • Ostatnia odpowiedź od 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.

Zmodyfikowany przez stewievader w dniu

Wszystkie odpowiedzi (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

Zmodyfikowany przez cor-el w dniu

more options

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