riant / host-switch-plus Goto Github PK
View Code? Open in Web Editor NEWChange the hosts rules in Chrome. It's easy, and effect immediately.
Home Page: http://riant.me/20150417/chrome-host-switch-plus/
Change the hosts rules in Chrome. It's easy, and effect immediately.
Home Page: http://riant.me/20150417/chrome-host-switch-plus/
你好,批量添加域名IP对应关系时,加入tag标志。目前只能一个一个加,累死人。
Is it possible to support https?
hope add group
疑问:
建议:
附:感谢作者的辛勤开发~~~工具的确好用~~~
不是说可以共用的吗?但是不行啊。有什么解决办法吗?
mode只有direct和system,增加个代理选项
例如,我在dev下配置了3个域名,其中有两个域名相同,点击 dev 的时候,没有任何变化。
1.1.1.1 a.abc.com
2.2.2.2 a.abc.com
3.3.3.3 b.abc.com
如果激活了 3.3.3.3 b.abc.com, 再次点击 dev 的时候,没有任何变化,无法关闭 3.3.3.3 b.abc.com,只能点击 3.3.3.3 b.abc.com 。
如题,所有走这个插件的Websocket连接都会失败
配置好的host switch plus,在http模式下工作正常,换成https就不起作用了。
console里还是会输出目标IP,但那是DNS服务器解析出来的。
在360浏览器用,会导致无法使用代理服务器
I've never been able to get this to work. I've tried disabling all other extensions. I've tried both 'System' and 'Direct'. I've restarted Chrome.
I'm on Chrome Version 54.0.2840.59 (64-bit) on MAC OS X El Capitan 10.11.6
Doesn't work on Ubuntu 14.04
Chrome version 53.0.2785.143 (64-bit)
如果能云备份就更好了,另外hosts文件还是有他的用处的,如果本插件可以把hosts文件导进去,但是并不在控制面板里面直接显示就完美了,即常用切换在切换面板显示,不常用的就在另外一个面板显示。还有,如果能和ping.chinaz.com结合起来,自动选取最优ip的话就可以当作收费插件出售了。
之前一直通过Proxy SwitchyOmega设置为系统代理来使用ss,但是因为和host switch冲突,所以关闭swithcomega,把host switch的代理方式设置为system,但是发现无效,无法正常使用设置好的系统pac
我所使用的环境的osx10.11
方便保存备份,不同电脑间同步。
Thanks! Will try this out.
作者辛苦了,请问默认的prod,dev,test可以删除么
我需要打开多个页面,但是这些页面有些同样的url需要对应不同的ip。
使用插件获取到的REQUEST_URI是包含了域名部分的,导致一些项目不能正常运行,比如设置www.example.com到本地后,得到的REQUEST_URI
是http://www.example.com
,改本地host的是/
,为何要这样做?这样不就跟改本地host文件不同了吗
打开本地页面是空白,如果修改host文件就是正常的
似乎是冲突了。
是这个软件:https://github.com/getlantern/lantern
你好~
最近我也在开发类似的插件,感觉https无解啊~~
我的理解是楼主用Fiddler测试是因为Fiddler本身支持代理(下面两篇文章),不知道是不是这样
https://imququ.com/post/web-proxy.html
https://imququ.com/post/web-proxy-2.html
不懂插件的原理,不知能不能不要全局设置,方便做对比
如题
如题
插件很不错,很好用,希望增加显示当前页面的IP功能,类似 host manager 左下角展示比较明显的IP地址。
127.0.0.1:8888 这样的端口配置并没有效果 整条记录都无效
正常的配置,但是没有生效,不知道什么问题...
1、已经有人提到的,如果当前域名,我在插件上设置了指向的ip,把ip显示出来
2、之前用的switchySharp,优先级貌似地域本插件;但是升级使用switchyOmega后,优先级变了。建议把优先级拿回来,毕竟修改host,是人主观所为,更需要被支持。
插件非常棒,感谢作者!
打算写一个chrome插件,需要用到切换域名所对应的远程ip地址。
找到作者的这个插件,看了下源码,没太明白作者怎么实现强制设置远程ip的。
background.js里的代码我打断点后根本不会触发。。
var enableHosts = [];
chrome.webRequest.onCompleted.addListener(function (details) {
//data[details.tabId] = details.ip;
setTimeout(function(){
details.req = 'showip';
details.hosts = enableHosts;
chrome.tabs.sendRequest(details.tabId, details, function (response) {
// console.log('res:', response);
});
},1000);
}, {
urls: [ 'http://*/*', 'https://*/*' ],
types: [ 'main_frame' ]
});
chrome.extension.onRequest.addListener(function(request, sender, sendResponse) {
enableHosts = request;
});
求教>.<
不知道是不是另外一位仁兄说的https的问题
严重问题:一次添加几千行hosts记录,在task manager看到内存逐渐升高,最后耗尽了机器的内存(chromebook)。
暂时不知道该是否能工作正常,毕竟无法添加需要的所有项。
瑕疵:另外 有注释#和空行会被停止解析,需要用shell重新整理才能batch导入。
实际开发中往往是 (ip+端口号+项目名)对应 一个域名,希望本插件能支持添加项目名的映射,从而不需要nginx代理配置(前端人员一般不用这个,虽然用fiddler等工具也能解决,但麻烦)
你们的不冲突么?每次我启动Host Switch Plus 后 SwitchyOmega就不能用了,什么情况?要怎么配置才行么?
mac下尝试了下..无效
如题,开启了hosts switch plus 插件后,Shadowsocks无法使用了,选system也不行。
望解决方案。
选了Direct和System感觉没区别
用了这个插件后,charles抓不到包,应该怎么设置可以解决?
The plugin does not appear to work with HTTPS/SSL traffic. I have a sever with SSL configured, but if I switch from HTTP to HTTPS it is unable to perform a DNS lookup for a host record. Any suggests or fixes?
如果配置host表时使用的是小写,地址栏里域名部分字母大写了,host switch plus会先把域名转换成小写,然后还是拦截失败,会使用DNS解析的真实IP
但console里输出的hostname是正确的
我配置的是*.xxx.com。没有试过不使用通配符是不是也存在这个问题
现在好像只支持http, 还不能完全取代 switchy
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.