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
希望出快捷键增加跳过OPED(90秒)的时间的功能 #259
Comments
现在的番剧已经不怎么遵守90秒的规则了(这都上世纪动画的规矩了),甚至op插入时间也没有严格规定了,有些甚至放了大半才开始op,时间长了短了都得重新调整,是吃力不讨好的功能,目前播放器控制栏那边的「00:00/24:00」是可以直接输入时间跳转的,评论区发空降时间点也可以点击跳转 |
https://greasyfork.org/zh-CN/scripts/377235-%E5%93%94%E5%93%A9%E5%93%94%E5%93%A9-bilibili-com-%E7%95%AA%E5%89%A7%E8%B7%B3%E8%BF%87%E7%89%87%E5%A4%B4 |
(要不硬编码一个数据库记录各集的oped长度 |
不需要啊,85秒足以,不爽自己调
…------------------ 原始邮件 ------------------
发件人: "TPOB"<notifications@github.com>;
发送时间: 2019年12月10日(星期二) 晚上8:32
收件人: "the1812/Bilibili-Evolved"<Bilibili-Evolved@noreply.github.com>;
抄送: "CAUCHY"<850726775@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [the1812/Bilibili-Evolved] 希望出快捷键增加跳过OPED(90秒)的时间的功能 (#259)
(要不硬编码一个数据库记录各集的oped长度
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
// ==UserScript==
// @name Bilibili Jump
// @version 1.0.0
// @description 按J跳跃时间
// @author Grant Howard
// @license MIT
// @match *://*.bilibili.com/*
// @run-at document-start
// @grant unsafeWindow
// @icon https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/images/logo-small.png
// @icon64 https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/images/logo.png
// ==/UserScript==
// 要跳跃的秒数
const jumpTime = 85
const supportedUrls = [
'https://www.bilibili.com/bangumi/',
'https://www.bilibili.com/video/',
]
if (supportedUrls.some(url => document.URL.startsWith(url))) {
document.addEventListener('keydown', e => {
if (document.activeElement && ['input', 'textarea'].includes(document.activeElement.nodeName.toLowerCase())) {
return
}
if (e.key.toLowerCase() === 'j') {
document.querySelector('video').currentTime += jumpTime
}
})
} |
感谢thx
…------------------ 原始邮件 ------------------
发件人: "Grant Howard"<notifications@github.com>;
发送时间: 2019年12月13日(星期五) 中午11:57
收件人: "the1812/Bilibili-Evolved"<Bilibili-Evolved@noreply.github.com>;
抄送: "CAUCHY"<850726775@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [the1812/Bilibili-Evolved] 希望出快捷键增加跳过OPED(90秒)的时间的功能 (#259)
// ==UserScript== // @name Bilibili Jump // @Version 1.0.0 // @description 按J跳跃时间 // @author Grant Howard // @license MIT // @match *://*.bilibili.com/* // @run-at document-start // @grant unsafeWindow // @ICON https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/images/logo-small.png // @icon64 https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/images/logo.png // ==/UserScript== // 要跳跃的秒数 const jumpTime = 85 const supportedUrls = [ 'https://www.bilibili.com/bangumi/', 'https://www.bilibili.com/video/', ] if (supportedUrls.some(url => document.URL.startsWith(url))) { document.addEventListener('keydown', e => { if (document.activeElement && ['input', 'textarea'].includes(document.activeElement.nodeName.toLowerCase())) { return } if (e.key.toLowerCase() === 'j') { document.querySelector('video').currentTime += jumpTime } }) }
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
这个功能已经被移除了吗?…… |
关于哪一项功能
期望的效果
脚本版本
The text was updated successfully, but these errors were encountered: