搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

disable the no proxies in autoconfig

  • 1 回覆
  • 1 有這個問題
  • 5 次檢視
  • 最近回覆由 cor-el

more options

Hi All

i want to disable the no proxy for firefox so i follow the instruction from https://www.youtube.com/watch?v=_O1b48jDg7o i have created a firefoxconfig.cfg with configuration below :

lockpref("network.proxy.no_proxies", "localhost, 127.0.0.1","*.server.local"); lockpref("network.proxy.share_proxy_settings", true); lockpref("network.proxy.type", 5);

the firefoxconfig.cfg stored in C:\Program Files\Mozilla Firefox

then i created another js with configuration below in C:\Program Files\Mozilla Firefox\defaults\pref

pref("general.config.obscure_value", 0); pref("general.config.filename", "firefoxconfig.cfg");

but the no proxy is still allowed to use instead of disabled as shown in the youtube video

any improvement needed ? kindly advise

Hi All i want to disable the no proxy for firefox so i follow the instruction from https://www.youtube.com/watch?v=_O1b48jDg7o i have created a firefoxconfig.cfg with configuration below : lockpref("network.proxy.no_proxies", "localhost, 127.0.0.1","*.server.local"); lockpref("network.proxy.share_proxy_settings", true); lockpref("network.proxy.type", 5); the firefoxconfig.cfg stored in C:\Program Files\Mozilla Firefox then i created another js with configuration below in C:\Program Files\Mozilla Firefox\defaults\pref pref("general.config.obscure_value", 0); pref("general.config.filename", "firefoxconfig.cfg"); but the no proxy is still allowed to use instead of disabled as shown in the youtube video any improvement needed ? kindly advise

所有回覆 (1)

more options

You should have all hosts in one comma separated string (""), so simply extend the current list.

Note that lockPref() is with a capital 'P', it is a function and errors throw an exception.

lockPref("network.proxy.no_proxies", "localhost, 127.0.0.1, *.server.local");
lockPref("network.proxy.share_proxy_settings", true);
lockPref("network.proxy.type", 5);

You will probably see error messages in the Browser Console about these errors.