Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

貌似……无法拦截啊 #5

Open
millionart opened this issue Jul 8, 2017 · 9 comments
Open

貌似……无法拦截啊 #5

millionart opened this issue Jul 8, 2017 · 9 comments

Comments

@millionart
Copy link

就一次成功拦截了jpg,然而本来我是想打开直接看的……
平时下载dmg tar.gz什么的直接就被Safari接管了……

@miniers
Copy link
Owner

miniers commented Jul 8, 2017

1.拦截文件类型是否配置正确
2文件类型拦截是基于后缀名的,也就是说只有url中以配置的后缀结尾的才能自动拦截
3.是否按着cmd或者shift了?readme中有快捷键说明

@millionart
Copy link
Author

貌似问题出在百度网盘这种,地址不带后缀名的

@miniers
Copy link
Owner

miniers commented Jul 8, 2017

百度网盘需要开启iframe拦截并使用shift强制拦截,readme也写的有,不过在最下边😂

@millionart
Copy link
Author

下了插件就跑的表示根本不知道readme是什么啊……软件里也没链接啊😂
另外提个小需求,下载完能不能像Safari一样加个在finder中显示的按钮,以及手动新建任务的功能……

@miniers
Copy link
Owner

miniers commented Jul 8, 2017

😂请详细阅读插件介,第一个功能已经有了,需要配合一个applescript小程序实现,不过由于safari限制,可能并不是特别好用。手动新增下载和原来一样,直接地址栏访问就好,当然URL需要后缀名😒插件无法判断没有后缀名的到底需不需要下载😂

@millionart
Copy link
Author

运行了app,啥都没有,我是不是被黑了😂
虽然知道输入地址,但就没办法强制添加啊😂,还是希望加上这个功能,直接识别剪贴板就更完美了😍

@miniers
Copy link
Owner

miniers commented Jul 8, 2017

第一次运行只是为了注册url schemes 确实没有任何界面
识别剪贴板的功能不会加也加不了,这只是个浏览器插件,强制添加抽空了想想怎么操作比较合适

@tshu-w
Copy link

tshu-w commented Aug 9, 2017

@millionart 百度网盘我一开始以为无法拦截,后来发现是要输入完验证码确认前长按 shift 😂

@miniers
Copy link
Owner

miniers commented Aug 9, 2017

@Voleking safari的插件api比较少,拦截下载主要用了监听url的变更来拦截的,不像是chrome还提供了下载事件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants