YouTube arrow keys 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.

Від 22.01.2024. Дивіться остання версія.

Автор
Calciferz
Рейтинги
0 0 0
Версія
1.3.0
Створено
18.02.2018
Оновлено
22.01.2024
Size
18,3 кБ
Ліцензія
MIT
Відноситься до

YouTube arrow keys FIX

This is a userscript for web browsers to:

  • make YouTube keyboard controls (arrow keys) more intuitive,
  • fix annoyances like focusing volume slider and progressbar,
  • make Tab-navigation more user-friendly by visualizing focus on player, video list items, comments with frame shadow.

Userscript registry page: https://greasyfork.org/en/scripts/38643-youtube-key-shortcuts-fix
Installation instructions below.

Features

YouTube player keyboard shortcuts will work consistently when player is focused:

  • Left,Right -> jump 5sec backwards / forwards
  • Home,End -> jump to video start / end
  • Up,Down -> volume up / down
  • Player is focused right after pageload, no need to click in player frame.
  • Click outside player frame to scroll page.
  • Can't be focused: volume slider, progress bar, fine seeking bar, subtitle.

Global keyboard shortcuts, unaffected:

  • Space -> play/pause on the whole page, not only when player is focused
  • K -> play/pause
  • C -> toggle closed captions (subtitles)
  • M -> mute
  • T -> theater mode
  • F -> fullscreen
  • +/- -> change subtitle font size
  • 0-9 -> jump to 0%-90%
  • J,L -> jump 10sec backwards / forwards
  • , -> previous frame (when paused)
  • . -> next frame (when paused)
  • Shift-, -> speed -0.25
  • Shift-. -> speed +0.25
  • Shift-N -> next video
  • Shift-P -> previous video
  • / -> focus searchfield
  • ? -> show keyboard shortcuts
  • 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 progressbar Up/Down will jump in the video instead of changing the volume.
  • After clicking the volume slider Left/Right will change the volume instead of jumping in the video.

YouTube keyboard shortcuts documentation:

Installation

Install an addon to manage userscripts, for example one of the following:

Then install the userscript from the registry:

Or install directly from this repository:

For the latest in-development version install from the dev, branch (not guaranteed to be reliable):