https://github.com/magicdawn/bilibili-app-recommend/issues/51#issuecomment-1693051515 配置一直存不下来()
Activity
k99k5 commentedon Nov 19, 2023
看了一下,应该是grant的问题
grant GM.setValue是无效的
grant GM_setValue就可以了
CodFrm commentedon Nov 19, 2023
是没有处理GM.*的权限授予,这是一个兼容性的问题
k99k5 commentedon Nov 20, 2023
CodFrm commentedon Nov 20, 2023
connect这个处理了的,有复现代码吗?
k99k5 commentedon Dec 8, 2023
bilibili-app-recommend 我有点查不出来了(最后结果就是APP推荐获取不了
CodFrm commentedon Dec 8, 2023
怎么使用和复现呢?我去看看
CodFrm commentedon Dec 8, 2023
我把grant改成这样后,好像可以,不过我也没用过这个脚本,不清楚正常情况是怎么样
k99k5 commentedon Dec 8, 2023
就手机端的API调用失败了
,
这个API https://app.bilibili.com/x/v2/feed/index
估计是跨域?我CORS允许了一下 好像不行
CodFrm commentedon Dec 9, 2023
这个功能在哪里呢?
CodFrm commentedon Dec 9, 2023
是这个栏目么?我这里可以显示
k99k5 commentedon Dec 9, 2023
对,我这个一直是出不来的,暴力猴没这个问题
k99k5 commentedon Dec 9, 2023
CodFrm commentedon Dec 9, 2023
这个错误感觉是网络问题导致的 不是扩展,直接访问这个URL呢?
k99k5 commentedon Dec 9, 2023
正常的,我用postman测了一下也是好的,没携带Referer头就是正常的
CodFrm commentedon Dec 11, 2023
@k99k5 哥哥看看background中的network有没有发送这个请求,我这里加上上面的
@grant看起来是没问题的,脚本版本为0.19.5,浏览器:版本 120.0.2210.61 (正式版本) (arm64)打开浏览器的开发者模式,然后点扩展的background.html
使用GM_xmlhttpRequest发送的请求可以在这里看到
k99k5 commentedon Dec 11, 2023
好像没走,我更新下脚本看看
k99k5 commentedon Dec 11, 2023
还真是有BUG没走,更新完好了
k99k5 commentedon Dec 11, 2023
@CodFrm 老哥有空兼容GM.*这个就完事了应该
k99k5 commentedon Dec 11, 2023
@CodFrm 发生了一件很奇妙的事,我笔记本安装同一个脚本没问题,PC上就是background.html连请求都不显示
--
解决了,是因为少了这个
// @grant GM.addStyle
🐛 修复@grant GM.*声明问题 #243
CodFrm commentedon Dec 18, 2023
已处理,我觉得还是统一使用GM_*的好,后续考虑加些lint规则