Greasy Fork is available in English.

YouTube arrow keys FIX

Fix YouTube keyboard controls (arrow keys) to be more consistent (Left,Right - jump, Up,Down - volume) after page load or clicking individual controls.

脚本作者
Calciferz
今日安装
1
总安装量
488
得分
6 0 0
版本
1.3.1
创建日期
2018-02-18
最近更新
2024-01-23
许可证
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 highlighting focus on player buttons.

Userscript registry page: https://greasyfork.org/en/scripts/38643-youtube-arrow-keys-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):