We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Αυτός ο ιστότοπος θα έχει περιορισμένη λειτουργικότητα, όσο εκτελούμε εργασίες συντήρησης για να βελτιώσουμε την εμπειρία σας. Αν ένα άρθρο δεν επιλύει το ζήτημά σας και θέλετε να κάνετε μια ερώτηση, η κοινότητα υποστήριξής μας είναι έτοιμη να σας βοηθήσει στο Twitter (@FirefoxSupport) και στο Reddit (/r/firefox).

Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Μάθετε περισσότερα

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.