globalSpeed icon indicating copy to clipboard operation
globalSpeed copied to clipboard

哔哩哔哩右键加速

Open 1602279568 opened this issue 1 month ago • 6 comments

使用该插件时,bilibili网页版按右箭头键的3倍加速会被禁用,有没有办法恢复?

1602279568 avatar May 11 '24 13:05 1602279568

Hi. can you explain more about this issue? The translation is pretty vague, something about either the right mouse button or right arrow key not functioning correctly on Bilibili. I'm not exactly sure what that means.

polywock avatar May 11 '24 14:05 polywock

@polywock maybe he/she meaning this: (long pressing the right arrow)

图片

图片

In fact, I just realized that this option is unchecked by default? Whereas I already observed a few sites being blocked by GS when doing their own ways to modify speed, even if this blocking is meant to be disabled as the help-info described?

LifeJustDLC avatar May 11 '24 14:05 LifeJustDLC

@LifeJustDLC Some websites, especially Chinese ones, use the HTML canvas element to play videos. Pretty much implementing their own video player using WASM. The major driver of this is supporting codecs that the browsers didn't support, e.g. HEVC. But, now that HEVC is supported officially, most sites are going back to standard video elements. If the speed change doesn't work with Ghost mode enabled, then you probably ran into those websites. You can confirm by inspecting the page DOM structure to see if the video is actually <video> or <canvas>.

@1602279568 Some users want to be able to change speed using the website's native controls. The problem is Global Speed can't determine if the user intentionally changed the speed or if the website's code did that. Since it's hard/impossible to determine intent, Global Speed only allows changing speed through it's own controls.

polywock avatar May 11 '24 15:05 polywock

@polywock

It's now a <video>

图片

Although I didn't confirm on all codecs. It's said to be depend on specific videos.

图片

@1602279568 下个重构过的版本快出了,也许会有平替的快捷键。在此之前,可能需要多按一次设置的快捷键(toggle),来替代网站原有的长按行为(toggle on key-release)

LifeJustDLC avatar May 12 '24 02:05 LifeJustDLC

懂了

1602279568 avatar May 12 '24 03:05 1602279568

补充:按键盘→键的时候,bilibili页面会闪一下3倍,然后变回GS设置的速度(没启用幽灵模式

1602279568 avatar May 12 '24 03:05 1602279568