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

使用debug脚本还是无法正常注入小工具 #11

Open
yamadafz opened this issue Sep 15, 2022 · 5 comments
Open

使用debug脚本还是无法正常注入小工具 #11

yamadafz opened this issue Sep 15, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@yamadafz
Copy link

问题描述
使用debug脚本还是无法正常注入小工具

出现问题的直播间地址
https://live.bilibili.com/9177

F12控制台截图
image

使用设备
系统:[例如:Windows10]Windows11
浏览器:[例如:Chrome]Edge
脚本版本:[例如:2.8.0]2.8.0

其他信息(回答是或否)
您是否尝试刷新网页?

如果刷新网页无效,您是否尝试重启浏览器?

补充内容(选填)

@yamadafz yamadafz added the bug Something isn't working label Sep 15, 2022
@isma123HH
Copy link
Owner

我修改了一部分代码,请安装这个版本的脚本再试
https://github.com/isma123HH/bilibili_live-assistant/raw/main/debug/can_inject_player/bili_live_assistant.user.js

@yamadafz
Copy link
Author

image

@isma123HH
Copy link
Owner

请您打开油猴脚本的管理面板,找到本脚本并左键点击,在新页面ctrl+f搜索“inject_live_player_here”,将810行和811行的代码改为

document.querySelector('.web-player-context-menu'+rdm_id+'').insertBefore($(LIVE__PLAYER_MENU)[0],null); // 向播放器注入"小功能"菜单


document.querySelector('.web-player-context-menu'+rdm_id+'').insertBefore($(LIVE__QC_MENU)[0],null); // 向播放器注入"直播切片"菜单

image
再点击左上角->文件->保存。
最后,打开直播间进行测试,在理想情况下“小功能”和“直播切片”会出现在右键菜单底部。
image
如果仍然没有这两个菜单,麻烦您再次提供一下报错截图。

@yamadafz
Copy link
Author

还是一样
image

@isma123HH
Copy link
Owner

看起来这个问题很棘手!
我会尝试在下个版本修复问题,在此之前推荐您先使用当前正式版。
https://greasyfork.org/zh-CN/scripts/445172-%E7%9B%B4%E6%92%AD%E5%B0%8F%E5%B7%A5%E5%85%B7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants