码迷,mamicode.com
首页 > 其他好文 > 详细

IE, Chrome and Firefox script to enable or disable proxy settings

时间:2015-08-30 08:46:05      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!