Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

Firefox 21 is not reading my user.js file.

  • 3 réponses
  • 6 ont ce problème
  • 1 vue
  • Dernière réponse par cor-el

more options

FF 21 does not appear to be reading or applying my user.js file to the user's prefs.js file. I have installed FF 21, went into about:config, made the changes I wanted so they would appear in the prefs.js file. I then saved that file as user.js and removed all the settings I did not care about. I then reset my virtual machine, installed FF 21 again and saved the file in C:\Program Files (x86)\Mozilla Firefox\defaults\profile. When I started FF 21 it did not apply any of the settings and behaved as if there was no user.js file. Here is a copy of my user.js file:


  1. Mozilla User Preferences

/* Do not edit this file.

*
* If you make changes to this file while the application is running,
* the changes will be overwritten when the application exits.
*
* To make a manual change to preferences, you can visit the URL about:config
*/

user_pref("app.update.auto", false); user_pref("app.update.enabled", false); user_pref("browser.bookmarks.restore_default_bookmarks", false); user_pref("browser.shell.checkDefaultBrowser", false); user_pref("browser.startup.homepage", "http://intranet.cdc.gov"); user_pref("browser.startup.homepage_override.mstone", "ignore"); user_pref("network.automatic-ntlm-auth.allow-proxies", true); user_pref("network.automatic-ntlm-auth.trusted-uris", "http://intranet.cdc.gov"); user_pref("browser.rights.3.shown", true);


This same exact file works just fine with FF 20.0.1. I have also tried this file with FF 21 with the comments at the beginning of the file removed.

Any help would be great appreciated.

FF 21 does not appear to be reading or applying my user.js file to the user's prefs.js file. I have installed FF 21, went into about:config, made the changes I wanted so they would appear in the prefs.js file. I then saved that file as user.js and removed all the settings I did not care about. I then reset my virtual machine, installed FF 21 again and saved the file in C:\Program Files (x86)\Mozilla Firefox\defaults\profile. When I started FF 21 it did not apply any of the settings and behaved as if there was no user.js file. Here is a copy of my user.js file: # Mozilla User Preferences /* Do not edit this file. * * If you make changes to this file while the application is running, * the changes will be overwritten when the application exits. * * To make a manual change to preferences, you can visit the URL about:config */ user_pref("app.update.auto", false); user_pref("app.update.enabled", false); user_pref("browser.bookmarks.restore_default_bookmarks", false); user_pref("browser.shell.checkDefaultBrowser", false); user_pref("browser.startup.homepage", "http://intranet.cdc.gov"); user_pref("browser.startup.homepage_override.mstone", "ignore"); user_pref("network.automatic-ntlm-auth.allow-proxies", true); user_pref("network.automatic-ntlm-auth.trusted-uris", "http://intranet.cdc.gov"); user_pref("browser.rights.3.shown", true); This same exact file works just fine with FF 20.0.1. I have also tried this file with FF 21 with the comments at the beginning of the file removed. Any help would be great appreciated.

Solution choisie

hello swahl, the problem probably isn't within the user.js file itself - see http://mike.kaply.com/2013/05/13/more-major-changes-coming-in-firefox-21/

Lire cette réponse dans son contexte 👍 1

Toutes les réponses (3)

more options

Solution choisie

hello swahl, the problem probably isn't within the user.js file itself - see http://mike.kaply.com/2013/05/13/more-major-changes-coming-in-firefox-21/

more options

Did you try creating a new Profile?
browser/defaults/profile applies to newly created Profiles, or upon installation of Firefox if you're building your own "package"

With an existing Profile, place the user.js file in the Profile folder directly.
C:\Users\<user name>\AppData\Roaming\\Mozilla\Firefox\Profiles\<profile folder>

http://kb.mozillazine.org/User.js_file


You should remove all this - not needed in user,js:

      #Mozilla User Preferences 

/* Do not edit this file.

*
* If you make changes to this file while the application is running,
* the changes will be overwritten when the application exits.
*
* To make a manual change to preferences, you can visit the URL about:config
*/
 
more options

Only newly created profiles are initialized via files in the defaults\profile folder.
This doesn't affect profiles that already exist.

Existing profile can only be affected via a mozilla.cfg autoconfiguration file.


You can 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