在天朝上网Proxy是少不了滴,想要一个符合自己要求的代理按钮,就需要亲自动手了。
1、在安装目录里找到standard_menu.ini文件。如果是10.51的话,就在“ui”这个文件夹里。
2、用记事本打开文件,复制以下代码添加到文件最后,并以UTF-8编码保存。代码内容可以自行修改,如“没有边代理”和“GApp”文件的路径,根据自身情况修改。想添加新代理依葫芦画瓢就可以啦。
[Proxy menu]
Item, "Proxy"=Set preference, "Proxy|HTTP server=0" & Set preference, "Proxy|FTP server=0" & Set preference,"Proxy|HTTPS server=0" & Disable proxy servers
Item, "代理"=Show preferences,23 & Show proxy servers
--------------------1
Item, "中国移动"=Disable proxy servers & Set preference, "Proxy|HTTP server=10.0.0.172:80" & Set preference, "Proxy|HTTPS server=10.0.0.172:80" & Enable proxy servers
Item, "没有边代理"=Execute program,"D:\program files\Opera10.5\OperaTools\U.exe", "start" & Disable proxy servers & Set preference, "Proxy|HTTP server=127.0.0.1:9666" & Set preference,"Proxy|FTP server=127.0.0.1:9666" & Set preference, "Proxy|HTTPS server=127.0.0.1:9666" & Enable proxy servers
--------------------2
Item, "启用GApp"=Execute program,"D:\program files\Opera10.5\OperaTools\GAppProxy\GApp.exe", "start" & Disable proxy servers & Set preference, "Proxy|HTTP server=127.0.0.1:8000" & Set preference, "Proxy|HTTPS server=127.0.0.1:8000" & Enable proxy servers
Item, "关闭GApp "=Execute program,"D:\program files\Opera10.5\OperaTools\GAppProxy\GApp.exe", "end" & Disable proxy servers
--------------------3
Item, "8118"=Disable proxy servers & Set preference, "Proxy|HTTP server=127.0.0.1:8118" & Set preference, "Proxy|HTTPS server=127.0.0.1:8118" & Enable proxy servers
Item, "8580"=Disable proxy servers & Set preference, "Proxy|HTTP server=127.0.0.1:8580" & Set preference, "Proxy|HTTPS server=127.0.0.1:8580" & Enable proxy servers
Item, "8080"=Disable proxy servers & Set preference, "Proxy|HTTP server=127.0.0.1:8080" & Set preference, "Proxy|HTTPS server=127.0.0.1:8080" & Enable proxy servers
3、在安装目录找到“standard_toolbar”用记事本打开,一般在“profile”里的“toolbar”文件夹里,复制以下代码到“[Customize Toolbar Custom.content]”后面,如果没有,创建该项,同样以UTF-8编码保存。
Button999, "Proxy On"="Set preference, "Proxy|Use HTTP=0", , "Proxy" > Set preference, "Proxy|HTTP server=10.0.0.172:80", , "中国移动" > Set preference, "Proxy|HTTP server=127.0.0.1:9666", , "没有边代理" > Set preference, "Proxy|HTTP server=127.0.0.1:8000", , "GApp" > Set preference, "Proxy|Use HTTP=1", , "Other Proxy" + Show popup menu, "Proxy Menu""
4、设置完成后,把按钮拖到你认为方便切换的位置,以后想换哪个代理直接点击切换就是。
Opera的按钮我一直认为是一个非常神奇、方便的功能,感觉比chrome和firefox的插件轻巧。
额,一看代码就头疼