-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add Feature : Advance notice skip #84
Conversation
感觉可以在跳过完成后把 |
它那是固定的关键字 我也不知道 |
在 项目官网 可以下载到数据库,例如这个视频 BV1fKewejE29 ,包含了开场动画、赞助广告、离题、鸣谢/结束画面等类别,可以用来测试。 |
public/_locales/en/en.messages.json
Outdated
@@ -371,11 +371,11 @@ | |||
"description": "Used for skipping to things (Skip to Highlight)" | |||
}, | |||
"skipped": { | |||
"message": "{0} Skipped", | |||
"message": "{0} Ready Skipped", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
en.message.json
文件其实不需要更新,这个文件是用来追踪原插件的文本,每次合并原插件版本的时候才更新一次
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同目录下的message.json
也不需要吗?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
message.json
是需要的,en.message.json
不需要,不过问题不大,因为下次同步会覆盖的
Fix unskip bug and skip when paused bug
试了一下,发现跳过了以后的弹窗没了。我觉得这个功能应该是在前后都加上弹窗,而不是直接把跳过后的弹窗改成前面🤔如果跳过之后没有弹窗的话,想要投票就更麻烦了。而且新功能一般不会直接开启,要加个选项控制。 我自己想了一下逻辑,不知道对不对:
|
目前添加了新的两个设置项 |
|
我深度测试了一下,感觉还是有一点点问题,下个版本如果没修好就先不发这个功能了,我单独建了个分支接着改
|
其实是有的 BilibiliSponsorBlock/src/content.ts Lines 2086 to 2088 in 5cfcd76
但是这里没有 getVideo().playbackRate 需要补一下BilibiliSponsorBlock/src/content.ts Lines 768 to 770 in 5cfcd76
确实没发现
这个的话确实太乱了 一开始是有传Video元素参数 然后后面发现可以直接用 |
#53 添加跳过前通知 提前时间为
'空降提醒弹窗'显示持续时间
设置时间经测试赞助广告
与无偿推广
可用 其他兼容性不明 (其实是找不到对应的片段了已全部适配
(题外话:要不在服务器拿点片段 放在贡献指南里开发用
无偿推广
这种都挺少的效果预览
2024-11-18.202316.mp4