feliscatus / switchyomega Goto Github PK
View Code? Open in Web Editor NEWManage and switch between multiple proxies quickly & easily.
License: GNU General Public License v3.0
Manage and switch between multiple proxies quickly & easily.
License: GNU General Public License v3.0
就是在列表里面,不同类型的放在一起,而不是所有类型混在一起按字母排序
SwitchyOmega 2.1.4
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36
抱歉,我将chrome设定为英文,然后使用“导入正在开发的扩展”导入 SwitchyOmega,可惜一直提示我
chrome-extension://aannbjoedbppfoikblcihlhkaipdljkp/web/options/out/options.html
请问,如何消除?
English Title: Wiki pages for conditions and patterns, etc.
有些英文已经写好了,但是还没有做中文的。另外也缺少教程和目录。
如果时间不够的话也许可以邀请其他人来帮忙做中文翻译?
English Title: Detect elements that could not be loaded due to network issues on the page, and provide quick "Add New Rule" UI
开发工程量比较大,而且权限是否会太多?如果和扩展主程序关系不大考虑做成另一个扩展或者插件的形式。
English title: Support PAC profiles with file:/// URL.
貌似这个比较复杂。首先单独使用PAC情景模式应该是没问题的,但是要嵌套的时候就会发现没法读/更新文件地址的URL,无法实现嵌套。应该要提示用户,这种只能单独用,无法设置为结果,并且也要从规则的下拉框里面去除。此外,单独使用PAC情景模式的时候,关闭临时规则功能。
This is quite complex to handle. First, PAC profiles with file:/// URLs can be applied without any problems. However, they cannot be used as result profiles because there would be no way to read the PAC content from a file URL. Users should be informed that this profile cannot be used as a result profile. Moreover, these kind of profiles should be removed from the result combo. Also, we should disable temp rules when these profiles are active.
English title: Interact with other extensions via messaging and handle requests like adding profiles.
SwitchyOmega will conflict with Ad-removal extensions and other extensions that sets proxy configurations. The conflict is due to the model of Chrome settings and cannot be solved by SwitchyOmega alone.
A solution would be allowing other extensions to create and modify profiles in SwitchyOmega via extension-to-extension messaging. However, other extensions must modify their code to use this method instead of setting the proxy directly. Moreover, the profiles created by other extensions must be manually applied or configured in switch profiles before they become effective.
I think the use case can be simplified to each third-party extension owning exactly one profile. Each extension can create and modify their own profile as they like.
However, I don't have enough time to dive into complicated logic related to this issue. I think I should focus on options syncing instead of this issue for now.
现在主要是会和一些去广告之类的使用PAC的扩展、以及其他设置代理的扩展冲突,而这个冲突是Chrome设置模型所决定的,无法通过常规途径解决。
一个解决思路是: SwitchyOmega 可以接受扩展间通讯,允许其他扩展在 SwitchyOmega 中建立情景模式,而不是自行调用 Chrome API 设置。好处显而易见,但缺点是必须那些扩展更改代码来实现,而且添加了情景模式之后还要用户手动去使用,或者设置到自动切换里。
我觉得可以简化成一个第三方扩展只能设置一个情景模式(可以创建和修改),方便实现。
总之这个也不急,等有了配置同步再来做也行。
网址通配符格式,存在OneDrive里,之前用Proxy SwitchySharp时一切正常。更换Omega,下载规则列表,自动代理模式始终无效。难道必须切换规则里一个一个添加?!
SwitchyOmega 2.1.12
Chrome 38.0.2125.104
Windows 8.1 Pro x64
English Title: Allow multiple wildcard patterns (seperated by | vertical bar) in one single wildcard condition
现在的架构支持这个会不会比较难?总之先看看怎么做吧……
比如可以给SSH和Shadowsocks指定不同的颜色,可以通过图标的颜色看到当前浏览的页面是否启用代理,启用了哪个代理。
English Title: Support file URLs for PAC scripts and online rule lists.
考虑是否能用简单的方法解决?如果能的话增加支持。
SwitchyOmega 2.1.12
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2159.4 Safari/537.36 OPR/26.0.1655.0 (Edition developer)
English title: The rulelist disappears after renaming a switch profile.
这个又忘记改了,看我这记性……
English title: Describe condition types.
切换条件的类型一下子增加了很多,大家未免会有些头晕。我觉得最好在选项界面简单介绍下各个条件类型,用一句话就好。
Many people could get confused by so many switch conditions. I think it's better to explain them using one sentence each in the options page.
English Title: Different profiles for Incognito Windows
这个完全可以做,但现在的代码可能需要修改来支持同时两个不同的情景模式。要考虑尽量避免两份几乎相同的代码。
我想問下我建立呢個GFWList,下面的Rule list result profiles
Match profile
Default profile
這個2個分別有什麼作用
謝謝
将一个代理配置命名为“123 ”保存并导出为备份配置。
将“123”修改为“456”并保存配置
重新导入刚刚备份的“123”的备份。发现名称依旧为“456”,并不能还原到“123”,但配置的代理信息是还原了的。
小bug,不影响使用,但影响切换判断
SwitchyOmega 2.1.2
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36
大致原理是通过判断域名是否在集合中来实现优化。
参考: https://github.com/clowwindy/gfwlist2pac
要整合到本项目中,必须解决以下问题:
所以……暂时来看的话,工作重点应该放在别的方面。
情景模式中,如果使用APJP代理(goagent的一种替代品,java写的),在APJP的log窗口中,
原本
HTTPS_REQUEST/GET_RESPONSE_MESSAGE: REQUEST: GET
后面应该是一串网络地址,全都变成乱码。使用SwitchySharp正常,无乱码现象。
下面是对比的截图:
附录:
APJP的项目主页:https://code.google.com/p/apjp/
APJP的中文wiki:https://code.google.com/p/apjp/w/list
SwitchyOmega 2.1.14
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36
Rulelist Profile (AutoProxy Compatible)设置了 可以正常使用 Switch Profile也设置了
并把default设置为Rulelist Profile 切换到Switch profile.但是不能正常使用,所有的网站打不开了
我的理解是 默认是用Rulelist在Switch Profile里的又才用相应的规则。但是好像只是Switch Profile里的是启用的,default里的没用,即使在default里设置direct也没用
还有整个个扩展的反应很慢在设置时 打开设置页面这些
English Title: Change settings from the context menu
理论上没有什么问题,不过做起来稍微有点麻烦就是了。另外会不会有人讨厌这种功能?也许应该加一个选项?
但至于快捷键之类的,需要在页面插入脚本,确实有点过分了。可能造成不少冲突,而且在不同页面行为会很不一致(如新标签页)。所以最多只能做右键菜单。
English title: Setup wizard/Profile creating wizard
我还是希望能加入一些简单的类似向导的东西。首先是创建情景模式时:
http://wpad/wpad.dat
之类的比原先只是多增加了一步,但做一些常见的设置可以快不少。
然后就是新用户的初始化向导了,我的计划是:
English Title: Options Syncing
目前的设置数据结构已经考虑到了同步问题,那么是否可以简单地把 chrome.storage.local
改成 chrome.storage.sync
就能同步?
由于不同电脑不同配置不同也很有用,所以考虑做一个选项,默认关闭,开启后进行同步。
同步有频率和大小的限制如何处理?
现在SwitchyOmega有2个地方可以填写自定义规则。一个是自动切换规则,一个是情景模式白名单。
每个情景模式下,都有个白名单区域,如果我有50条白名单,等于是要在每个情景模式下,粘贴一遍。以后每增加一条,都要在所有情景模式下增加一遍。
如果我使用自动切换规则,当我有50条规则的时候,我更换情景模式就麻烦大了。50条规则都要换一遍。比如,goagent今天容易断线,我临时换SNOVA代理,回头再换回goagent。就要把50条规则的情景模式,全都改一遍。
为什么不像firefox的AutoProxy那样,给自定义规则分组呢?一组 切换规则,对应一个情景模式。(现在是每条规则,都对应一个情景模式)
这样既清晰,又方便,而且做到了功能设计的基本标准:完全穷尽不重复。
SwitchyOmega 2.1.12
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36
界面转向 Polymer ,使用新 Observable.
Title: Extra support for users in China Mainland and the GFW List
目前考虑过的支持如下:
要不要做?会不会和扩展主题不符合?是否应该以另一个扩展或者插件的形式实现?
profile前面自动加null,设置完毕后会出错,自动清空配置文件
无法上传附件。
English title: Keyboard navigation in the popup menu.
现在的弹出菜单还不能用方向键或者 tab 键选择项目,不是很方便。之后可以试试看做这个,顺便加上默认快捷键,就相当于实现快捷键操作了。
For now, the popup menu items cannot be navigated using arrow keys or tab. We can add this feature later so that switching profiles without mouse would be possible.
在选项标签页对情景模式进行操作(包括添加、编辑、删除、从备份文件恢复)并保存更改后,需要切换一次代理才能实现在icon下拉菜单中的情景模式列表更新。
对于首次安装并添加情景模式的用户来说,需要在“系统代理”和“直接连接”之间切换一次才能显示之前添加的模式。
SwitchyOmega 2.1.1
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36
我点了那个错误日志,里面是Options << Options#applyProfile [
"auto"
]
Options << Options#updateProfile []
是什么问题?
我添加了代理aa,并基于该代理添加了自动切换模式bb。删除bb后无法删除aa,显示"aa依旧被__ruleListOf_bb使用“。
另外,上述bb我展开了规则列表,如果我删除bb后新建同名自动切换模式(即“bb”),规则列表设置会默认展开。
SwitchyOmega 2.1.8
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36
如题,我的代理带有用户名和密码,但是switchyomega居然不支持,怎么才可以加上认证呢?
English Title: Fall back to DIRECT connection if proxy fails?
是不是应该 PAC文件返回值结尾添加 DIRECT?另外代理脚本错误的情况呢?仔细考虑一下然后看一下是否应该设置选项……
GFW List 的一些规则不是支持得很好, 例如 规则里有 '.example.com'
那输入example.com不使用代理, 要输入 'www.example.com' 才使用代理。
规则前有点 “.”
Title: Extension icons for 2x resolution.
现在有的静态图标应该可以很容易做 2x 的。不过动态图标怎么办呢?
考虑用两个 canvas 分别画 19px 和 38px ?还是只用 38px 的然后缩放?或者检测当前是1x还是2x?
总之暂时不影响使用,有时间再改吧。
Error downloading profile data!
English title: Reserve profile names beginning with double underscore, and show prompt for profiles beginning with single underscore.
p
,来保证升级后不被隐藏。If it is left blank, the following scripts will be used directly instead.
上面这个功能没有实现。
bug再现:
换回 2.1.9 是好的,2.1.10 出现该问题
已经同样反馈到 Chrome Web Store
两台机器,同一网络皆有此问题
The URL box does not complain about the lack of http:// or https:// part in the URL, and it silently ignores an incorrect URL without it (in SwitchySharp 1.10.2)
似乎导入原来的配置里 使用 ://autoproxy-gfwlist.googlecode.com/ 这个网址通配符适配所有GFWList似乎是无效的了。
并且这个和GFWList也是重复的? 请教一下如何让自动切换这个配置能识别GFWList,因为有的网址不在GFWList里面只有通过这个模式手工添加
抱歉无法上传图片
English Title: Allow basic auth for proxies.
可不可以给个 basic auth 的选项?如果还没有的话。
现在的情况是,返回 401 错误后,chrome 会弹出对话框。不过,这可能成为 gfw 下一个监测特征。以后可能需要密码错误就返回 400,才能不被发现。
刷新下,旧的没变,多了个新命名的profile
相当于两份
不知道为什么,开机第一次开启Chrome,扩展图标是带有黄色感叹号的,点击一次扩展图标后消失,之后也都是正常的显示,这是个Bug么?:)
本机通过系统代理连接到互联网,IE可以正常访问,chrome通过SwitchyOmega插件无法访问。
SwitchyOmega 2.1.3
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2159.4 Safari/537.36
这版内存占用没有2.1.4处理掉好;另外就是希望情景模式可以自定义显示/隐藏,不然自定义上几个显示就不方便了!!!
SwitchyOmega 2.1.5
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36
一个匹配要代理的域名''A_example.com'
A_example.com 的网页代理有一行代码
<script language="javascript" type="text/javascript" src="B_example.com/15008471.js"></script>B_example.com 是不匹配代理的网址。
这时候B_example.com这个会走代理出去。
不知道能不能区分这个链接呢?
为什么会自动跳到外部情景模式,
我设置的是自动模式啊,用了会就自动跳到外部情景模式去了
是什么巧情况啊,已经好几次了
SwitchyOmega 2.1.11
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.101 Safari/537.36
启动chrome后 使用情景模式Switch Profile 所有网站都不能打开
但是使用其他情景,如goagent 或者直连都可以打开网站
但是把Switch Profile改一个名就能正常使用,重新启动chrome后状况依旧,还是要改个名。
English title: Rules editing tab loading too slowly
感觉自从用了那个 bootstrap-select 的下拉框以后,整个页面都非常非常卡……虽然说能显示情景模式的类型和颜色固然很好,但加载速度太慢了,用户体验也会很差。要怎么办呢?加一个选项?还是超过20条规则自动禁用?
是不是可以有其他的优化?比如点击时才加载什么的?或者自己实现下拉框来优化效率?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.