firefox proxy settings via command line

后端 未结 19 1997
闹比i
闹比i 2020-12-02 18:20

How do I change Firefox Proxy settings via command line on windows xp/2k?

Thanks

19条回答
  •  抹茶落季
    2020-12-02 18:45

    All the other answers here explain how to program your proxy settings into Firefox which is what WPAD was invented to do. If you have WPAD configured then just tell Firefox to use it to auto-detect its settings, as you would in the GUI.

    Connection Settings

    To do this from a cmd file or command line:

    pushd "%APPDATA%\Mozilla\Firefox\Profiles\*.default"
    echo user_pref("network.proxy.type", 4);>>prefs.js
    popd
    

    This of course requires you to have WPAD configured and working correctly. Also I believe prefs.js won't exist until you've run Firefox once.

提交回复
热议问题