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

fix: 同时安装了pakku时下载处理后的弹幕 #4712

Merged
merged 1 commit into from
Apr 13, 2024

Conversation

xmcp
Copy link
Contributor

@xmcp xmcp commented Apr 10, 2024

有用户 向 pakku 反映 开启 pakku 之后用 Bilibili-Evolved 下载的仍然是处理之前的原始弹幕,导致他还要手工处理一下,比较麻烦。

这是因为 pakku 曾经 hook 了 XMLHttpRequest,而且处理得有问题,导致 Bilibili-Evolved 改用 fetch 来下载(未经 pakku 修改的)弹幕

刚更新的 pakku v2024.4.3 版本解决了兼容性问题,同时也 hook 了 fetch 函数,这样两个插件就可以共存了。可以 安装新版 pakku 试一下效果

我本地测试了一下,把 Bilibili-Evolved 下载弹幕代码的 fetch() 改成 unsafeWindow.fetch() 即可下载 pakku 处理之后的弹幕(如未安装新版 pakku 时则会正常调用原始的 fetch)。

@the1812 the1812 merged commit e064526 into the1812:preview-fixes Apr 13, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants