Skip to content

Instantly share code, notes, and snippets.

@vvoody
Created February 4, 2010 06:58
Show Gist options
  • Save vvoody/294407 to your computer and use it in GitHub Desktop.
Save vvoody/294407 to your computer and use it in GitHub Desktop.
; 我不要全局代理,只需要通过PAC。开启某个代理软件后能在Opera里方便的切换对应的pac文件
; pac文件没法判断当前使用的是那个代理软件,所以只能根据不同的代理软件写多个pac文件
; vvoodysToolbar.ini
Button0, "PAC"="Enable proxy servers, , , "PAC", "New folder" | Disable proxy servers + Show popup menu, "PAC menu""
; vvoodysMenu.ini
[PAC Menu]
Item, 使用GAP=show preferences & show proxy servers & Focus previous widget & Focus previous widget & Focus previous widget & Focus previous widget & Check item & Focus next widget & Insert, "file:///C:/Users/vvoody/AppData/Roaming/Opera/Opera/proxy-gap.pac" & OK & Delay, 10 & Cancel
Item, 使用IndiaWebProxy=show preferences & show proxy servers & Focus previous widget & Focus previous widget & Focus previous widget & Focus previous widget & Check item & Focus next widget & Insert, "file:///C:/Users/vvoody/AppData/Roaming/Opera/Opera/proxy-indiawebproxy.pac" & OK & Delay, 10 & Cancel
Item, 关闭PAC=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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment