我通過訪問Regisrry設置 更改了我的C#代碼中的IE代理,因此如何從我的C#代碼更改Mozila Firefox代理?從C#代碼更改Firefox代理
0
A
回答
0
你需要的代理服務器設置:
URL GOTO=javascript:var<SP>prefb<SP>=<SP>Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);var<SP>str<SP>=<SP>Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);str.data<SP>=<SP>"{{!COL2}}";prefb.setComplexValue("network.proxy.http",<SP>Components.interfaces.nsISupportsString,<SP>str);
URL GOTO=javascript:gPrefBranch.setIntPref("network.proxy.http_port",{{!COL3}});
URL GOTO=javascript:gPrefBranch.setIntPref("network.proxy.type",1);
(摘錄自http://forum.iopus.com/viewtopic.php?t=12440#p36761複製)
當然,你可以簡單地使用開源的iMacros插件並與PROXY命令運行一行宏。
0
您需要編輯配置文件目錄中的prefs.js。一些示例代碼可以在這裏找到:http://support.mozilla.com/sv-SE/questions/727731
確保在編輯該文件之前關閉Firefox!
相關問題
- 1. 更改Firefox代理設置?
- 2. 處理 - 更改mouseClicked()代碼
- 3. 如何更改webdriver的Firefox代理?
- 4. Firefox正在更改我的代碼?
- 5. 需要更改C++代碼
- 6. 如何更改從代碼
- 7. selenium更改firefox代理自動檢測c#
- 8. 從Facebook應用程序更改Chrome/Firefox代理設置
- 9. C#代碼通過代理
- 10. 代理更改IP?
- 11. 更改用戶代理在python代理
- 12. 更改源代碼
- 13. 更改代碼庫
- 14. HTML代碼更改
- 15. Jslider更改代碼
- 16. 更改代碼svn2git
- 17. 從C#代碼
- 18. 代碼在Firefox
- 19. 反編譯代碼更改代碼
- 20. 更改wordpress代碼庫中的代碼
- 21. 更改CIL代碼爲本地代碼在C#
- 22. Awesomium C#WebControl,更改代理設置
- 23. 在c#中更改webview代理-metro
- 24. 更改用戶代理WebBrowser對象C#
- 25. C++更改Opera代理設置
- 26. C#從C++更正託管代碼
- 27. AVFoundation將Swift代碼更改爲Objective-C
- 28. 在代碼隱藏(C#)中更改Css
- 29. C#如何更改我的代碼?
- 30. 我如何更改我的C代碼?
from command line http://stackoverflow.com/questions/843340/firefox-proxy-settings-via-command-line – 2011-03-11 11:53:28