Weijie Zhao
Weijie Zhao
> 可否支持一些小影视网站,例如,双十影视这种,也是一个很广泛的需求,不知道有没有考虑过 https://2gether.video 你可以试一下我们正在开发的插件,几乎支持了所有的视频站
今天看了一下,安卓 webview 没有 api 可以注入 js 到 iframe。不过有一个非常 hack 的方式,https://stackoverflow.com/questions/68984756/how-do-i-inject-javascript-to-an-iframe-from-java-code-into-an-android-webview ,拦截 request 然后给 response append 一段 js。 这种 hack 做法估计没有什么浏览器会支持,我做的插件因为必须要注入 iframe,用 react native 实现了上面的 hack 做法,如果有其他人遇到这个问题希望有帮助 https://github.com/VideoTogether/VideoTogetherApp
If you have the order of these scripts, why not merge them into a new script in order?
> 可以支持 ddrk.me 吗?这个网站挺不错的,高清资源,更新也很即时 https://2gether.video 你可以试下我们在开发的插件,基本上把所有的视频网站都兼容了
> @maggch97 > > Could you provide the page url? https://2gether.video/release/extension.user.js . If I install this script and reopen this script. The userscripts won't show 'Usersciprt Detected'
``` let script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'https://www.2gether.video/release/vt.user.js?timestamp=' + parseInt(Date.now() / 1000 / 3600); document.getElementsByTagName('body')[0].appendChild(script); ``` Above code can not insert the js into github page successfully....
There's a big issue when using vercel.json to set the Cache-Control header. Even the Cache-Control header is setted correctly, the age header will be larger than the max-age, then Chrome...
Turn off "Go back without reloadding" in setting. This feature will create a new webview everytime when location change. So the sessionstorage won't be shared because they are in different...
@tuyafeng 刚刚试用了一下via的iOS版,非常棒,看出来是非常用心打磨的。我测了 inject to all frame 这个选项是开的。希望后续不会为了和安卓保持一致改回去,因为我做的脚本依赖了这个特性。 一个小问题, video后缀不在域名后缀名单里面,我的域名会跳到搜索 https://2gether.video/ 一个建议: 如果后续做非原生的视频小窗播放,希望是默认关闭的,鲨鱼浏览器之类会默认打开小窗功能,影响所有基于html video 做的脚本
还有一个问题是,iOS via没有麦克风和摄像头权限。网页内的webrtc通话是需要这些权限的,iOS 11 之后Safari就支持了