Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

firefox is ignoring my user.js

  • 2 답장
  • 1 이 문제를 만남
  • 4 보기
  • 최종 답변자: 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.