Youtube key shortcuts FIX

Fix player controls Space, Left, Right, Up, Down to behave consistently after page load or clicking individual controls. Not focusing the mute button anymore.

目前為 2018-02-25 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Calciferz
評價
0 0 0
版本
1.0.4
建立日期
2018-02-18
更新日期
2018-02-25
尺寸
25.2 KB
授權條款
MIT
腳本執行於

Youtube player controls will work consistently when player is focused:

  • Left / Right (5sec backwards / forwards), Up / Down (volume up / down), Home (restart video), End (skip to end)
  • 0-9 (jump to 0%-90%), C (switch closed captions/subtitles), +/- (change cc font size): unaffected

Player is focused right after pageload, no need to click in player frame:

  • Click outside player frame to get standard page controls: Up, Down, Left, Right (scroll)
  • Press Esc to focus player, Shift-Esc to cycle search box, video list, like buttons / comments.
  • Space pauses video on the whole webpage except textboxes.

Global shortcuts, changed:

  • Esc (exit fullscreen): additionally focuses player when not in fullscreen
  • Space (play/pause): works on whole page, not only when player is focused

Global shortcuts, unaffected:

  • F (fullscreen), M (mute)
  • K (play/pause)
  • J / L (10sec backwards / forwards)
  • , (previous frame), . (next frame)
  • Shift-, (speed -0.25), Shift-. (speed +0.25)
  • Shift-N (next video), Shift-P (previous video)
  • / (focus searchfield, only in classic ui)
  • ENTER (push the focused button)

Fixes the following awkward behaviour of Youtube player controls after clicking them (making the individual control focused):

  • after clicking the mute button Space toggles mute instead of pausing
  • after clicking the progressbar Up/Down will jump 10 sec in the video instead of changing the volume
  • after clicking the volume slider Left/Right will change the volume instead of jumping the video.
  • after clicking subtitle button Space will toggle subtitles
  • after clicking settings button Space will toggle settings
  • after clicking fullscreen button Space will toggle fullscreen

Sources of youtube shortcut behaviour:

https://shortcutworld.com/Youtube-Player/win/Youtube-Player_Shortcuts https://www.hongkiat.com/blog/useful-youtube-keyboard-shortcuts-to-know/ https://support.google.com/youtube/answer/7631406?hl=en 2010: flash player? https://www.makeuseof.com/tag/comprehensive-guide-youtube-player-keyboard-shortcuts/