一个Opera的高级代理菜单
请先参考这篇文章。这次没有使用set preferences命令,而全部改用模拟对话框的操作,因为set preferences会让浏览器卡住一两秒钟。另外还添加了一点新功能,把地址栏或者剪切板中的地址设置为代理IP,把当前网址添加到代理例外列表,在Opera中调用,并且可以关闭外部代理程序。目前想到的就这么多,还有什么有创意的想法欢迎告诉我。
点击
这里,用文本编辑器打开其中的文件,把下面的代码复制到最后,保存,记得编码一定要是UTF-8,不然会乱码。打开Opera。然后把这个按钮拖放到Opera的工具栏中:
Proxy Menu Pro
[Proxy Menu Pro]
--------------------1
Item, "手动设置代理..."="external action,,,,Menu Tools | show preferences & show proxy servers"
--------------------2
item, "从地址栏复制代理"="external action,,,Add Proxy,Add widget | focus address field & select all & copy & cancel & 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"
item, "从剪切板复制代理"="external action,,,,Add widget | 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"
--------------------3
item, "添加例外"="external action,,,,Transfer Success | 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"
--------------------4
item, "127.0.0.1:8580"="external action,,,,Extended Security | 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, "127.0.0.1:8000"="external action,,,,Extended Security | 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, "127.0.0.1:8081"="external action,,,,Extended Security | 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,"8580" & ok & delay,10 & cancel"
item, "127.0.0.1:4041"="external action,,,,Extended Security | disable proxy servers & show preferences & show proxy servers & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"4041" & focus next widget & check item & focus next widget & insert,"127.0.0.1" & focus next widget & insert,"4041" & ok & delay,10 & cancel"
--------------------5
item, "运行 FreeGate"="external action,,,,Mail Attachments | execute program,"notepad.exe""
item, " 退出 FreeGate"="execute program,"cmd.exe","/c taskkill /im fg*""
item, "运行 GAppProxy"="external action,,,,Mail Attachments | execute program,"notepad.exe""
item, " 退出 GappProxy"="execute program,"cmd.exe","/c taskkill /im gui.exe /f /t || taskkill /im proxy.exe /f || taskkill proxy.py /f""
item, "运行 Tor"="external action,,,,Mail Attachments | execute program,"notepad.exe""
item, " 退出 Tor"="execute program,"cmd.exe","/c taskkill /im tor.exe"
如果你不嫌麻烦,还可以把这个按钮做得更强大一点,点击左边可以控制全局代理的开关,点击右边的三角形就打开代理菜单。但麻烦之处就在于因为使用了很多个“&”运算符,Opera无法判断当前的状态,所以就不能根据使用代理的情况给出正确的图标,不过,我还是找到了一个解决的办法。按钮如下:
Proxy Menu Pro
opera:/button/disable proxy servers, , , "proxy menu pro", "check skin" | enable proxy servers & show preferences & show proxy servers & focus previous widget & focus previous widget & focus previous widget & focus previous widget & focus previous widget & uncheck item & ok & delay, 10 & cancel + show popup menu, "proxy menu pro"
你还需要对皮肤文件做一下小小的修改,点击
这里查看当前使用的皮肤文件的位置,关闭Opera,打开皮肤压缩包,把里面的skin.ini拖出来,用文本编辑器打开,在最后加上下面的几行语句,保存后再拖回压缩包里,然后再打开Opera,把上面的按钮拖放到Opera的工具栏中。
[Check Skin]
Type =
Box
Tile Center = checkbox/selected.png
Width = 16
Height = 14
[Check Skin.selected]
Type = Box
Tile Center = checkbox/unselected.png
Width = 16
Height = 14
最后的效果如上图
REPLY))
@jude,
这下有了。
你要不要一下子回复3次- -
爆我邮箱啊
REPLY))
@A.shun, 不好意思,我发现好像有些问题,在测试。我从自己的邮箱里看好像没有给你提示啊
REPLY))
@A.shun, 那就再骚扰一次了?
REPLY))
唉,早上折腾wp,要折腾的东西不少
又到了干活时间。
发现你不喜欢用BreakItem
REPLY))
@A.shun, 就这几个选项,没有必要再用breakitem了
REPLY))
是蛮高级的,我上次就是想写“从剪切板复制代理”
果然是延迟不够没成功- -,囧
我还给代理工具添加了图标,完美主要,哈
谢谢你的“添加例外”按钮
另外,貌似收不到邮件回复
REPLY))
@A.shun, 同样的命令,在不同的地方执行的效果可能就不一样,而在前面加一个delay,1或者|就行了,特别是在菜单里,不知道是为什么。
现在应该能收到邮件回复了吧?当你留言时勾选上了“Notify me”,如果以后有人用“@”回复你的话,就会有邮件提醒。
REPLY))
@jude,
哈哈,测吧
这个功能很重要
REPLY))
现在正常了
REPLY))
testing from opera 10.50
REPLY))
从地址栏复制代理,,,,这个
是什么意思啊,能说的详细点吗?
REPLY))
@A.shun, 你的工具真多啊,我其实就只用GAppProxy,主要是速度快。
REPLY))
@jude, 我主要用wj和门。
gapp和tor备用,另外几个用得不多,放着壮观点吧,嘿
gapp我这里直接Execute program调用gui.exe貌似不行,需要设置起始位置,所以调用快捷方式来启动
你遇到这个问题么?
REPLY))
@jude, 我这要10M。
我的错别字一直很多的- -
又换回1893了,10.5谷歌输入法无法光标跟随,吐血中,等一下个版本
REPLY))
@zh, 把代理服务器的地址写在地址栏中,点击那个菜单就会把地址栏里的地址设置为Opera的代理服务器。
REPLY))
用来你几个按钮,欢迎围观↖(^ω^)↗
http://i.imgur.com/pLYnhl.jpg
REPLY))
@A.shun, 我用的源代码版的,只需运行proxy.py,没有试过图形界面的
REPLY))
@jude,
额,犯了低价错误,一直运行的是gui.exe,现在想想,要图形界面干嘛,运行proxy.exe就可以。不过那玩意体积还是不小,继续用快捷方式吧。
.py我不考虑,不打算安装Python
REPLY))
@A.shun, 好像你在我博客上的留言没有几条没有错别字。^^ 我的占用7MB内存
REPLY))
对了
那个按钮+菜单不需要修改皮肤的
只要这么写就行了
"Disable proxy servers, , , "Proxy Disable", "Checkbox Skin" > Enable proxy servers, , , "Proxy Enable", "Checkbox Skin.selected" & Show preferences & Show proxy servers & Focus previous widget & Focus previous widget & Focus previous widget & Focus previous widget & Focus previous widget & Uncheck item & Ok & Delay, 10 & Cancel + Show popup menu, "proxy menu pro""
REPLY))
@A.shun, 那么写状态是相反的
REPLY))
@jude, 关键就是能让它根据状态显示2个图标就行了嘛。
至于什么样子都是可以调整的。
REPLY))
@jude, 相反?
没有啊。
效果是一样的。
左边是你的写法,右边是我的。
http://imgur.com/EWZD8.png
REPLY))
@A.shun, 我以前那么写过,记得好像不行,是反的,现在没电脑不能试
REPLY))
@A.shun, 我以前那么写过,记得好像不行,是反的,现在没电脑不能试
REPLY))
[...] [...]
REPLY))
[...] Update: 这个更好:http://judesimon.com/2009/12/17/advanced-proxy-menu-for-opera.html [...]