搜索 | 用户支持

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

详细了解

firefox is ignoring my user.js

  • 2 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 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! :-)

所有回复 (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.