标签:
For IE and Chrome set the proxy server up on IE and close IE.
Create and new texts file and copy the following into it:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"ProxyEnable"=dword:00000001
File save as proxy.reg then change "ProxyEnable"=dword:00000001 to "ProxyEnable"=dword:00000000 and file save as noproxy.reg
IE and chrome are done just double click proxy.reg if you want the proxy server and noproxy.reg if you don‘t.
Firefox you need to configure the proxy settings and close Firefox.
Create a new text file and copy the following into it:
//
// user.js: Personal prefs which mozilla shouldn‘t overwrite.
//
user_pref("network.proxy.type", 1);
File save as ffproxy.txt the change user_pref("network.proxy.type", 1); to user_pref("network.proxy.type", 0); then file save as noffproxy.txt
Now comes the hard part of the Firefox, these files need to be copied in the same place as your prefs.js directory and renamed to user.js depending on what you want. If you want the proxy server enabled then you need to rename ffproxy.txt to user.js in the same directory as prefs.js
Copy C:\Users\ \AppData\Roaming\Mozilla\Firefox\Profiles\.default\ffproxy.txt to C:\Users\AppData\Roaming\Mozilla\Firefox\Profiles\ .default\user.js
To disable copy noffproxy.txt
Copy C:\Users\ \AppData\Roaming\Mozilla\Firefox\Profiles\.default\noffproxy.txt to C:\Users\AppData\Roaming\Mozilla\Firefox\Profiles\ .default\user.js
IE, Chrome and Firefox script to enable or disable proxy settings
标签:
原文地址:http://www.cnblogs.com/trandexp/p/4770301.html