firefox is ignoring my user.js
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)
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).
- Do any of the prefs have a locked setting in you click the Status header on the about:config page?
- Do you see the general.config.filename pref with value mozilla.cfg on the about:config page?
- Are you sure that you are starting this version of Firefox?
- Do you get an error message when the mozilla.cfg file is absent?
- You will first have to check for errors with the local-setting.js file
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.