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

[Bug]: 快速切片按钮不加载 #86

Closed
1 task done
u2shana opened this issue Oct 22, 2024 · 22 comments · Fixed by #88 or #89
Closed
1 task done

[Bug]: 快速切片按钮不加载 #86

u2shana opened this issue Oct 22, 2024 · 22 comments · Fixed by #88 or #89
Assignees
Milestone

Comments

@u2shana
Copy link

u2shana commented Oct 22, 2024

感谢您抽出时间填写此问题回报!

  • 我已经搜索了现有的问题,并且确认我的问题是独特的

问题描述

image
image

偶尔会出现按钮不加载的情况,但是此时使用快捷键,对应功能生效的。
出现频率不算高,但如果同时使用其他带有嵌入到这个位置按钮的脚本(比如https://greasyfork.org/zh-CN/scripts/406048-bilibili-live-tasks-helper),触发概率会大大升高
所以猜测代码加载时机或者别的原因出了问题

期望结果

1

复现步骤

1

浏览器

chrome130

其他浏览器上的复现

No response

扩展版本

2.0.2

相关的日志(如有)

No response

补充(如有)

No response

@eric2788
Copy link
Owner

也就是説跟其他脚本有衝突?
你有確保過再完全沒有其他脚本的情況下依然出現這種狀況嗎 🤔

@u2shana
Copy link
Author

u2shana commented Oct 22, 2024

也就是説跟其他脚本有衝突? 你有確保過再完全沒有其他脚本的情況下依然出現這種狀況嗎 🤔

尝试过关闭其他脚本,还是会有这种情况出现,但是出现概率变得低很多

@eric2788
Copy link
Owner

eric2788 commented Oct 22, 2024

.left-ctnr.left-header-area

image
image

就這麽看上去確實是有衝突

@eric2788
Copy link
Owner

也就是説跟其他脚本有衝突? 你有確保過再完全沒有其他脚本的情況下依然出現這種狀況嗎 🤔

尝试过关闭其他脚本,还是会有这种情况出现,但是出现概率变得低很多

設定確定設置了顯示對吧,那 F12 打開 console 有出現錯誤嗎?

@u2shana
Copy link
Author

u2shana commented Oct 22, 2024

也就是説跟其他脚本有衝突? 你有確保過再完全沒有其他脚本的情況下依然出現這種狀況嗎 🤔

尝试过关闭其他脚本,还是会有这种情况出现,但是出现概率变得低很多

設定確定設置了顯示對吧,那 F12 打開 console 有出現錯誤嗎?

image

@eric2788
Copy link
Owner

eric2788 commented Oct 22, 2024

也就是説跟其他脚本有衝突? 你有確保過再完全沒有其他脚本的情況下依然出現這種狀況嗎 🤔

尝试过关闭其他脚本,还是会有这种情况出现,但是出现概率变得低很多

設定確定設置了顯示對吧,那 F12 打開 console 有出現錯誤嗎?

image

第一個錯誤是怎麽發生的,這個錯誤應該會導致插件完全無法運作
另外第三個 warning 應該是字幕懸浮區塊切換按鈕失效?

@u2shana
Copy link
Author

u2shana commented Oct 22, 2024

也就是説跟其他脚本有衝突? 你有確保過再完全沒有其他脚本的情況下依然出現這種狀況嗎 🤔

尝试过关闭其他脚本,还是会有这种情况出现,但是出现概率变得低很多

設定確定設置了顯示對吧,那 F12 打開 console 有出現錯誤嗎?

image

第一個錯誤是怎麽發生的,這個錯誤應該會導致插件完全無法運作 另外第三個 warning 應該是字幕懸浮區塊切換按鈕失效?

我搞错了,第一个错误产生的原因是商店版本的插件忘记关了。第二个waring就是快速切片按钮没加载出来时的警告,第三个warning如上一个issue所说,自从B站上个月样式改版后那个按钮就失效了

@eric2788
Copy link
Owner

也就是説跟其他脚本有衝突? 你有確保過再完全沒有其他脚本的情況下依然出現這種狀況嗎 🤔

尝试过关闭其他脚本,还是会有这种情况出现,但是出现概率变得低很多

設定確定設置了顯示對吧,那 F12 打開 console 有出現錯誤嗎?

image

第一個錯誤是怎麽發生的,這個錯誤應該會導致插件完全無法運作 另外第三個 warning 應該是字幕懸浮區塊切換按鈕失效?

我搞错了,第一个错误产生的原因是商店版本的插件忘记关了。第二个waring就是快速切片按钮没加载出来时的警告,第三个warning如上一个issue所说,自从B站上个月样式改版后那个按钮就失效了

不對,第二個 warning 也是 同傳字幕 功能的,跟 快速切片 無關

@eric2788
Copy link
Owner

你試試去直播間打開 F12 元素, 輸入 document.querySelector('div.upper-row > div.left-ctnr.left-header-area') 看看有沒有html,還是出 null

@u2shana
Copy link
Author

u2shana commented Oct 22, 2024

image
这是关了其他脚本有按钮的情况
image
这是开了别的脚本但是还有按钮的情况
image
这是开了别的脚本但是没有显示按钮的情况

@eric2788
Copy link
Owner

image 这是关了其他脚本有按钮的情况 image 这是开了别的脚本但是还有按钮的情况 image 这是开了别的脚本但是没有显示按钮的情况

第三圖,這是明顯是跟其他脚本衝突了
有沒有沒開其他脚本但是沒有顯示按鈕的截圖?

@u2shana
Copy link
Author

u2shana commented Oct 22, 2024

image 这是关了其他脚本有按钮的情况 image 这是开了别的脚本但是还有按钮的情况 image 这是开了别的脚本但是没有显示按钮的情况

第三圖,這是明顯是跟其他脚本衝突了 有沒有沒開其他脚本但是沒有顯示按鈕的截圖?

image

@eric2788 eric2788 self-assigned this Oct 24, 2024
@eric2788 eric2788 added this to the v2.0~ milestone Oct 24, 2024
@eric2788 eric2788 moved this to In Progress in Bibili Vup Stream Enhancer Oct 24, 2024
@eric2788
Copy link
Owner

eric2788 commented Oct 24, 2024

@u2shana humm e2e 测试没看到有问题: https://github.com/eric2788/bilibili-vup-stream-enhancer/actions/runs/11495591034/job/31995607368#step:9:108

你确定不是由别的脚本冲突引起的?

@u2shana
Copy link
Author

u2shana commented Oct 24, 2024

@u2shana humm e2e 测试没看到有问题: https://github.com/eric2788/bilibili-vup-stream-enhancer/actions/runs/11495591034/job/31995607368#step:9:108

你确定不是由别的脚本冲突引起的?

可能是吧,解决不了的话也没办法,但也能用

@eric2788
Copy link
Owner

eric2788 commented Oct 24, 2024

@u2shana humm e2e 测试没看到有问题: eric2788/bilibili-vup-stream-enhancer/actions/runs/11495591034/job/31995607368#step:9:108
你确定不是由别的脚本冲突引起的?

可能是吧,解决不了的话也没办法,但也能用

我在大海报房间测出来了,普通房间试了十次也没问题 (重新启动可以暂时解决)

@eric2788
Copy link
Owner

@u2shana
Copy link
Author

u2shana commented Oct 24, 2024

@u2shana 试试这个 https://github.com/eric2788/bilibili-vup-stream-enhancer/actions/runs/11501093196 我优化了元素抓取

这版正常了。但是旧版的配置好像不能直接导入

@eric2788
Copy link
Owner

@u2shana 试试这个 eric2788/bilibili-vup-stream-enhancer/actions/runs/11501093196 我优化了元素抓取

这版正常了。但是旧版的配置好像不能直接导入

怎么说?

@u2shana
Copy link
Author

u2shana commented Oct 24, 2024

@u2shana 试试这个 eric2788/bilibili-vup-stream-enhancer/actions/runs/11501093196 我优化了元素抓取

这版正常了。但是旧版的配置好像不能直接导入

怎么说?
按钮能正常显示,但是旧版配置导入会报错

@eric2788
Copy link
Owner

@u2shana 试试这个 eric2788/bilibili-vup-stream-enhancer/actions/runs/11501093196 我优化了元素抓取

这版正常了。但是旧版的配置好像不能直接导入

怎么说?
按钮能正常显示,但是旧版配置导入会报错

试试这个版本看看还有没有导入问题:
https://github.com/eric2788/bilibili-vup-stream-enhancer/actions/runs/11502861167

@u2shana
Copy link
Author

u2shana commented Oct 24, 2024

@u2shana 试试这个 eric2788/bilibili-vup-stream-enhancer/actions/runs/11501093196 我优化了元素抓取

这版正常了。但是旧版的配置好像不能直接导入

怎么说?
按钮能正常显示,但是旧版配置导入会报错

试试这个版本看看还有没有导入问题: https://github.com/eric2788/bilibili-vup-stream-enhancer/actions/runs/11502861167

这版正常,能导入了

@eric2788
Copy link
Owner

@u2shana 測都測了,能順手幫我測試同傳字幕AI總結?在功能設定 -> 同傳字幕 -> AI 設定那邊

eric2788 added a commit that referenced this issue Oct 25, 2024
* scoped test cases related to this issues

* fixed querySelector first not attached issue

* optimized settings import mechanism and added test case

* removed scoped tests

* fixed race condition on apiContext
@eric2788 eric2788 mentioned this issue Oct 25, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in Bibili Vup Stream Enhancer Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
2 participants