HTML5 Audio/Video Keyboard Shortcuts With OSD

Adds keyboard shortcuts for controlling HTML5 media player (audio/video) with OSD support. Seek media to 0%, 5%, 10%, ..., or 95%. Rewind and fast fordward media by 30 seconds, 1 minute, and 5 minutes. Change media speed even beyond YouTube's speed limit. Change audio volume to 20%, 40%, 60%, 80%, or 100%. Change video aspect ratio for TV and letterbox content (for widescreen monitors).

< Feedback on HTML5 Audio/Video Keyboard Shortcuts With OSD

Review: Good - script works

§
Posted: 20-02-2024

could add keyboard shortcuts for screenshot?
about [shift+S]..

or maybe in this JS ?
https://greasyfork.org/zh-TW/scripts/39813-html5-video-frame-screenshot
my favorite always hide....

§
Posted: 20-02-2024

//截圖screenshot
{
key: "S", modifiers: "S", videoOnly: true,
func: (ele, key) => screenshot()
},

帶點好運的成功了...
複製了程式碼過來後,增加了上面寫的快速鍵
雖然不知道有沒有BUG,再次感謝作者辛苦寫的腳本
I succeeded with some good luck...
After copying the code, I added the shortcut keys written above
Although I don’t know if there are any bugs...
I would like to thank the author again for his hard work in writing the script.

jcunewsTác giả
§
Posted: 20-02-2024

OK. The script has been updated to add the feature.

But the keyboard shortcut for it is Alt+S. It can not be Shift+S since it conflicts with "More YouTube Hotkeys" script's hotkey.

§
Posted: 21-02-2024

非常感謝您!
另外請教,能否加入[記憶播放進度功能]呢?
例如YT or 影音網站總是要重新播放

Thank you very much!
In addition,could add [Memory Play Progress]?
For example, YT or OR video website is always replayed 0:00

§
Posted: 19-03-2024

不好意思,回報YT又改版
速度調到0.2x後,要再次往上會在0.4X卡住。
但可以直接按回復原速1x

Sorry, I have to report that YT has revised the version again.
After the speed is adjusted to 0.2x, it will get stuck at 0.4X if you want to go up again.
But you can directly press to restore the original speed 1x

jcunewsTác giả
§
Posted: 20-03-2024

I can't reproduce that exact problem (i.e. stuck at 0.4X), but I do notice it can get stuck at different speed.

Either way, the possible code which seems applies to YouTube has been removed in the script update.

§
Posted: 21-03-2024

感謝~目前正常使用了!
Thank you ~ Now it is GODD use!

§
Posted: 28-04-2024

https://anime1.me/22594
請問截圖能夠支援這個網站嗎?
Could screenshots support this website?

jcunewsTác giả
§
Posted: 28-04-2024

The functionality is blocked by CORS policy because the video server doesn't support CORS. It can not be worked around from UserScript.

It has to be worked around using a HTTP response header editor browser extension to add the Access-Control-Allow-Origin HTTP response header for the video resource

https://stackoverflow.com/questions/34743987/canvas-image-crossplatform-insecure-error/34755162#34755162

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin

§
Posted: 29-04-2024

好的,不好意思麻煩妳了,感謝^^
Okay, sorry to bother you, thank you^^

§
Posted: 26-05-2024

請問我能夠設定大小寫通用嗎?
目前我是分開設定,能否這樣設定?
Can I set it to be case-insensitive?
Currently I set it up separately, can I set it up like this?
key: "a,A", modifiers: "",

Currently set
{
key: "a", modifiers: "",
func: (ele, key) => ele.currentTime -= 1
},
{
key: "A", modifiers: "",
func: (ele, key) => ele.currentTime -= 1
},

jcunewsTác giả
§
Posted: 26-05-2024
Edited: 26-05-2024

Can I set it to be case-insensitive?

The in-code description has errors about case-sensitivity of key name, sorry. The key name is not case-sensitive.

The script has been updated to fix the in-code description, and add support for case-sensitive key name.

With previous and the updated script versions, key: "a" will match both a and A, and key: "A" will match both a and A.

Case-sensitive keyboard shortcut e.g.

{
  key: "a", modifiers: "", caseSensitive: true,
  func: () => { /* code... */ }
},

Currently I set it up separately, can I set it up like this? key: "a,A", modifiers: "",

No. Multiple key names must be separated in an array. e.g.: key: ["A", "Z"], or with the new update: key: ["b", "N"], caseSensitive: true.

§
Posted: 27-05-2024

非常感謝,設定成功了!!

Thank you very much, the settings are successful !!

Post reply

Đăng nhập để bình luận