This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

firefox is ignoring my user.js

  • 2 replies
  • 1 has this problem
  • 4 views
  • Last reply by cor-el

more options

I have a strange problem where firefox just wont read my user.js file.

I created a user.js file in both on the locations below and populated it with the settings below.

C:\Users\Ben\AppData\Local\Mozilla\Firefox\Profiles\4wqnfwud.default C:\Users\Ben\AppData\Roaming\Mozilla\Firefox\Profiles\4wqnfwud.default

user_pref("network.proxy.http", "1.1.1.1") user_pref("network.proxy.http_port", "80") user_pref("network.proxy.type", "1")

Firefox loads but just ignores the settings. I uninstalled firefox and tried again, still no luck. I'm on Windows 7 with firefox 36 downloaded today.

Any help would be great! :-)

I have a strange problem where firefox just wont read my user.js file. I created a user.js file in both on the locations below and populated it with the settings below. C:\Users\Ben\AppData\Local\Mozilla\Firefox\Profiles\4wqnfwud.default C:\Users\Ben\AppData\Roaming\Mozilla\Firefox\Profiles\4wqnfwud.default user_pref("network.proxy.http", "1.1.1.1") user_pref("network.proxy.http_port", "80") user_pref("network.proxy.type", "1") Firefox loads but just ignores the settings. I uninstalled firefox and tried again, still no luck. I'm on Windows 7 with firefox 36 downloaded today. Any help would be great! :-)

All Replies (2)

more options

Force proxy config Step:1) Created a file name like "local-settings.js" in -- /usr/lib/firefox/defaults/pref --- Pasted this line -- pref("general.config.filename", "mozilla.cfg"); --- in "local-settings.js" Step :2) Created a file name like "mozilla.cfg" in -- /usr/lib/firefox --- And copy and paste the below line in this "mozilla.cfg" file.

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


lockPref("network.proxy.type", 1); lockPref("network.proxy.http", "X.X.X.X"); lockPref("network.proxy.http_port", 8080); lockPref("network.proxy.share_proxy_settings", true); lockPref("network.proxy.no_proxies_on", "127.0.0.1,localhost,X.X.X.X")

Troubleshooting steps: The steps look fine to me (byte shifting is no longer required).

  1. Do any of the prefs have a locked setting in you click the Status header on the about:config page?
  2. Do you see the general.config.filename pref with value mozilla.cfg on the about:config page?
  3. Are you sure that you are starting this version of Firefox?
  4. Do you get an error message when the mozilla.cfg file is absent?
  5. You will first have to check for errors with the local-setting.js file
more options

You may need to add a semicolon at the end of each user_pref line. The last two as Integer prefs and not String prefs, so you need to remove the quotes. You can see the type of each pref on the about:config page. It is usually safest to make the change on the about:config and copy the lines from prefs.js to user.js to avoid such mistakes.

user_pref("network.proxy.http", "1.1.1.1");
user_pref("network.proxy.http_port", 80);
user_pref("network.proxy.type", 1);

The main profile folder is in AppData\Roaming (the cache is in AppData\Local). Also make sure that the file is not a text file with a hidden .txt file extension (user.js.txt). You can verify that in the properties of the file via the right-click context menu.