更新 Opera 代理切换菜单和按钮
没事就折腾,把以前整过的 Opera 代理快速切换菜单 更新一下,解决几个小问题。
也可以准备迎接5月35号了,用到的机会更多。
本文纯粹是折腾回顾,不提供任何相关工具和网址,评论的同学们也请注意别出现关键词。
更新内容
- 重写了 Pac 启用和禁用状态切换按钮的代码,现在打开标签较多的时候启用 Pac 不会再有停顿。
- 修正了 Add To Exceptions (添加到例外)条目在 10.5x下会转到 null 页面的问题。
- 简化了菜单,GTunnel 和 Puff 的条目默认不显示,启用/禁用 Pac的条目也不再需要了。
- 添加 Mr.zhang 相关的条目,默认不显示。
- Pac 切换菜单中添加本地 Pac文件的条目,需要修改路径。
- 添加了一个在线代理,有备无患。
添加代理状态切换按钮
只有第二个有更新。
安装 Opera 代理快速切换菜单
在你的菜单配置文件最后添加以下代码:
[Quick Proxy Menu] Item, "Setting » Proxy"=External action,,,,Menu Tools | show preferences & show proxy servers Item, "Add To Exceptions"=External action,,,,Add widget | edit site preferences & delay, 10 & copy & Cancel & delay,1 & Disable proxy servers & Show preferences & Show proxy servers & Delay, 10 & Check item & Focus next widget & Focus next widget & Focus next widget & Check item & Focus next widget & Focus next widget & Focus next widget & Focus next widget & Focus next widget & Focus next widget & Focus next widget & Focus next widget & Check item & Focus next widget & Go to end & Insert, "," & Paste & Ok & Delay, 10 & Cancel Item, "Close » All Proxy"=execute program,"cmd.exe","/c taskkill /im opt* /f /t",,"Stop" & Disable proxy servers Item, "---Fuck » GFW---"=Show popup menu Item, "[召唤 » Fgate ]"=Execute program,"fg的路径或快捷方式",,,"fg" Item, "[召唤 » FreeU ]"=Execute program,"fu的路径或快捷方式",,,"fu" Item, "[召唤 » wujie ]"=Execute program,"wj的路径或快捷方式",,,"u" Item, "[召唤 » GApp ]"=Execute program,"gapp的路径或快捷方式",,,"gap" ;Item, "[召唤 » GTunnel]"=Execute program,"gt的路径或快捷方式",,,"gt" ;Item, "[召唤 » Puff ]"=Execute program,"puff的路径或快捷方式",,,"puff" ;Item, "[召唤 » Mr.Z ]"=Execute program,"Mr.zhang的路径或快捷方式",,,"Panel Contacts" Item, "[召唤 » SSH-D ]"=Execute program,"myentunnel的路径或快捷方式" ,,,"p" & Execute program,"Privoxy/Polipo的快捷方式或启动脚本" Item, "[召唤 » Tor ]"=Execute program,"tor的路径或快捷方式",,,"tor" BreakItem Item, "Open in WebProxy 1"="Go to page, "https://imi.appspot.com/goto?url=%u",,,"Forward mail"" Item, "Open in WebProxy 2"="Go to page, "http://tor-proxy.net/proxy/express/browse.php?u=%u",,,"Forward mail"" Item, "Use » LocalPac"=disable proxy servers ,,,,"Lock panel" & Show preferences & Show proxy servers & Focus previous widget & Focus previous widget & Focus previous widget & Focus previous widget & Check item & Focus next widget & Insert,"本地pac路径,绝对或相对均可" & focus next widget & Ok & Delay, 10 & Cancel Submenu, "Use » OnlinePac", Pac Menu="Show popup menu,,,, "Restart transfer"" Item, "--Switch » Port--"=Show popup menu Item, "[ Fg/fu ] » 8580"=External action,,,,Panel Collapse Right | disable proxy servers & show preferences & show proxy servers & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"8580" & focus next widget & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"8580" & ok & delay,10 & cancel Item, "[ Wujie ] » 9666"=External action,,,,Panel Collapse Right | disable proxy servers & show preferences & show proxy servers & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"9666" & focus next widget & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"9666" & ok & delay,10 & cancel Item, "[ GApp ] » 8000"=External action,,,,Panel Collapse Right | disable proxy servers & show preferences & show proxy servers & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"8000" & focus next widget & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"8000" & ok & delay,10 & cancel ;Item, "[GTunnel] » 8081"="External action,,,,Panel Collapse Right | disable proxy servers & show preferences & show proxy servers & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"8081" & focus next widget & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"8081" & ok & delay,10 & cancel" ;Item, "[ Puff ] » 1984"="External action,,,,Panel Collapse Right | disable proxy servers & show preferences & show proxy servers & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"1984" & focus next widget & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"1984" & ok & delay,10 & cancel" ;Item, "[ Mr.Z ] » 1984"="External action,,,,Panel Collapse Right | disable proxy servers & show preferences & show proxy servers & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"2010" & focus next widget & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"2010" & ok & delay,10 & cancel" Item, "[Tor/SSH] » 8118"=External action,,,,Panel Collapse Right | disable proxy servers & show preferences & show proxy servers & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"8118" & focus next widget & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"8118" & ok & delay,10 & cancel Item, "Clipboard IP Port"=External action,,,,Mail Attachment | go to page, "opera:config#proxy|httpserver" & delay, 1000 & select all & paste & focus next widget & focus next widget & paste & focus address field & insert, "opera:config#proxy" & go & focus previous widget & focus previous widget & click button & delay, 10 & ok & delay,1 &close page [Pac Menu] Item, "[9666 » Wujie ]"=disable proxy servers,,,,"u" & Show preferences& Show proxy servers & Focus previous widget & Focus previous widget & Focus previous widget & Focus previous widget & Check item & Focus next widget & Insert,"http://autoproxy2pac.appspot.com/pac/wu-jie" & focus next widget & Ok & Delay, 10 & Cancel Item, "[8580 » Fg/Fu ]"=disable proxy servers ,,,,"fg" & Show preferences& Show proxy servers & Focus previous widget & Focus previous widget & Focus previous widget & Focus previous widget & Check item & Focus next widget & Insert,"http://autoproxy2pac.appspot.com/pac/free-gate" & focus next widget & Ok & Delay, 10 & Cancel Item, "[8000 » Gapp ]"=disable proxy servers ,,,,"gap" & Show preferences& Show proxy servers & Focus previous widget & Focus previous widget & Focus previous widget & Focus previous widget & Check item & Focus next widget & Insert,"http://autoproxy2pac.appspot.com/pac/gappproxy" & focus next widget & Ok & Delay, 10 & Cancel ;Item, "[1984 » Puff ]"=disable proxy servers ,,,,"puff" &Show preferences& Show proxy servers & Focus previous widget & Focus previous widget & Focus previous widget & Focus previous widget & Check item & Focus next widget & Insert,"http://autoproxy2pac.appspot.com/pac/puff" & focus next widget & Ok & Delay, 10 & Cancel ;Item, "[8081 » GTunnel]"=disable proxy servers ,,,,"gt" & Show preferences & Show proxy servers & Focus previous widget & Focus previous widget & Focus previous widget & Focus previous widget & Check item & Focus next widget & Insert,"http://autoproxy2pac.appspot.com/pac/proxy/127.0.0.1/8081" & focus next widget & Ok & Delay, 10 & Cancel Item, "[8118 » SSH/Tor]"=disable proxy servers ,,,,"p" & Show preferences& Show proxy servers & Focus previous widget & Focus previous widget & Focus previous widget & Focus previous widget & Check item & Focus next widget & Insert,"http://autoproxy2pac.appspot.com/pac/privoxy" & focus next widget & Ok & Delay, 10 & Cancel [Quick Proxy Patch] Item, "[切换到9666 并召唤 wujie]"=External action,,,,"u" | Execute program,"wj的路径或快捷方式" & delay,20 & disable proxy servers & show preferences & show proxy servers & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"9666" & focus next widget & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"9666" & ok & delay,10 & cancel Item, "[切换到8580 并召唤 Fgate]"=External action,,,,"fg" | Execute program,"fg的路径或快捷方式" & delay,20 & disable proxy servers & show preferences & show proxy servers & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"8580" & focus next widget & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"8580" & ok & delay,10 & cancel Item, "[切换到8580 并召唤 FreeU]"=External action,,,,"fu" | Execute program,"fu的路径或快捷方式" & delay,20 & disable proxy servers & show preferences & show prox servers & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"8580" & focus next widget & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"8580" & ok & delay,10 & cancel Item, "[切换到8000 并召唤 GApp]"=External action,,,,"gap" | Execute program,"Gapp的路径或快捷方式" & delay,20 & disable proxy servers & show preferences & show proxy servers & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"8000" & focus next widget & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"8000" & ok & delay,10 & cancel ;Item, "[切换到1984 并召唤 Puff]"=External action,,,,"puff" | Execute program,"puff的路径或快捷方式" & delay,20 & disable proxy servers & show preferences & show proxy servers & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"1984" & focus next widget & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"1984" & ok & delay,10 & cancel Item, "[切换到8118 并召唤 SSH-D]"=External action,,,,"p" | Execute program,"myentunnel的路径或快捷方式" & delay,20 & Execute program,"Privoxy/Polipo的快捷方式或召唤脚本" & delay,20 & disable proxy servers & show preferences & show proxy servers & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"8118" & focus next widget & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"8118" & ok & delay,10 & cancel Item, "[切换到8118 并召唤 Tor]"=External action,,,,"tor" | Execute program,"Tor的路径或快捷方式" & delay,20 & Execute program,"Privoxy/Polipo的路径或快捷方式" & delay,20 & disable proxy servers & show preferences & show proxy servers & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"8118" & focus next widget & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"8118" & ok & delay,10 & cancel ;Item, "[切换到8081并召唤GTunnel]"=External action,,,,"gt" | Execute program,"Gtunnel的路径或快捷方式" & delay,20 & disable proxy servers & show preferences & show proxy servers & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"8081" & focus next widget & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"8081" & ok & delay,10 & cancel
代理菜单使用说明
- 图标添加和详细说明请查看:《轻松用代理:打造豪华Opera代理菜单》
- 修改菜单时,要注意保存为UTF-8无BOM格式,否则会乱码。
- 注意在保存menu 、skin之前,要先关闭Opera。
- 如果提示“此扩展名未注册应用程序”,那么请检查外部程序路径。
后续更新:
- 2010年06月19日:更加方便的 Opera 代理按钮和菜单
- 2011年02月24日:Opera 自动代理解决方案和代理菜单
» 转载请以超链接形式注明来源:A.shun Blog » 《更新 Opera 代理切换菜单和按钮》
» 本文链接地址:http://shun.im/21362
沙发!
撒花?
@安 差一点。。之前上面那条被ak拦了。。
板凳。。。
还是觉得FF方便,哈,到时要玩op再向你要
@zwwooooo 这个嘛,就是新手初次使用修改路径有点麻烦
@A.shun 的确是,所以还是在你面前当伸手党吧 ➡
@zwwooooo 伸吧,和wp相关的我都向你伸手的 😀
前排支持。话说我现阶段还用不上这些……
@卡农 这个东西其实展示意义多于实用性
上次在这里得了枚VPN,十分感谢那位热心的筒靴啊~
@LEO jude是个好童鞋
chrome路过!
@咪咪集散地
好像现在Chrome的用户是越来越多了。
这个菜单按钮的确很强力! 😀
@philade 哈,我还想将它暴力化。 😎
路过吧…
已经做好迎接5月35号到来的一切准备了 😀
@婉秋 嗯嗯,各种工具和ssh、vpn都配备好了
不错,正在用Opera
你还真能折腾Opera 啊
我还是喜欢使用chrome 呵呵!
opera有些网页打不开是什么原因呢?是不是需要装插件的?
@朵未 基本上FF能打开的,op也可。
你说的“有些页面”是指哪些
@A.shun 很正常的网页啊,比如126邮箱,登陆时显示无法定位远程服务器或者连接被远程服务器关闭。我不知道什么原因。
@朵未 网易邮箱那个是证书问题。新版好了
我这每次都能成功登录的。
不过网易的邮箱也够残念了。。。居然还关了pop3.
好东西,支持
围观折腾帝 😆
虽然昨天偶也折腾了好久 ❗
@lovee 爱折腾的都是好孩子
感觉最近你博客的访问速度很慢。咋回事
@A.shun 又是海底光缆的问题吧?可能=w=反正偶从来没觉得在兲朝上那里快过,也懒得管他(因为没技术233)
现在用它用的少了
墙外人士路过,不怕5月35,嘿嘿。
网络不好,是因为你很没rp的不给我沙发。T_T
@Vicia 哼,沙发和rp没有联系呢
一直认真没玩过Opera 呢,看上去代理功能很强啊
@Hobo op不是代理强,是自定义强
这地儿不错!
偶尔用用Opera 大部分时间用Firefox
chrome me too
我表示这个浏览我没装 ❗
俺看得迷迷糊糊的,什么路径啊
我是来观光的~~~
真是牛人,看来也是折腾高手。。。。
5月35号?有这个日子!?
@huangjun 简单的加法问题 😀
这几天也为网络郁闷着
太慢了~
楼上有2位ubuntu10.04
我觉得你这提交评论的效果挺好的。。。
@truant ajax方式嘛,优点是不用重新载入页面
pc上都没有opera了. 手机专用了. ❗
电脑上装了这个浏览器,但用的很少 很少
我装了这个备用,不过大部分时间还在用chrome
哈哈,这个也不错,不过我只用一个在线代理网站叫做…
技术贴,纯支持一个
Opera如果能有插件功能应该会更好。
10.60出来了,已经用上了,哈哈。
@SoleilNeon 插件是有的,但扩展程序不是op的风格,不太需要。
还是chrome的插件来得比较方便哈哈~ 😥 看得内牛满面~
@Jutoy 插件不能直接调用代理工具嘛,不喜欢整天开着
我没有用这个 我用的是chrome浏览器!
@joyla 你这该升级了 😎
@A.shun 不会吧,我觉得chrome很不错啊!它的市场占有比例灰常的高啊!
@joyla 那个,我说的是“该升级了”因为你上面的是4.1版本。你敏感了 😀
再说,如果市场份额能说明优秀的话,那IE无敌了。
@A.shun 第一个是用的便携版本回复地,第二个是本子上回复地!哈哈
洋葱头 不用桥的话 还能用么 对了SOMH的TOR 好像加不进去桥
能否共享个
test
“XXX的路径或快捷方式”怎么确定?例如,是wj的路径或快捷方式,那么wj是放在OPERA的什么文件夹下的?
@opera
举个例子吧,放在假设放在D:\Web\Opera\tools\中,名字是wj.exe
那么填写D:\Web\Opera\tools\wj.exe 这是绝对路径。
也可以用tools\wj.exe,这是相对路径。
如果只是用绝对路径的话,不放op目录下也行
Item, “[召唤 » Fgate ]”=Execute program,”fg的路径或快捷方式”,,,”fg”
以你写的为例好了,我的意思是怎么找到fg的安装目录,我在op目录下找不到啊,而这个fg是指一个什么格式文件。我不懂哦,求教!OPZ!
@opera fg和wj那是就是代理工具的程序名嘛。不属于 Opera 的,你要自己下载。
这个是敏感词,如果你有这个需求,就搜索下。
@A.shun 能问下EasyTor是不是没用了?
哦,十分感谢你的解答!
维护国家主权,留住祖宗留下的领土要打谁怕谁,我们中国神马都缺就是不缺人