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.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Calciferz
日安装量
1
总安装量
631
评分
8 0 0
版本
2.0.0
创建于
2018-02-18
更新于
2024-04-27
大小
19.8 KB
许可证
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):