[youtube.com] Arrow keys hate focus

No focus depending arrow keys binding. Left/Right - always playback, down/up - always volume.

Per 19-12-2019. Zie de nieuwste versie.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey, Greasemonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Userscripts.

Voor het installeren van scripts heb je een extensie nodig, zoals {tampermonkey_link:Tampermonkey}.

Voor het installeren van scripts heb je een gebruikersscriptbeheerder nodig.

(Ik heb al een user script manager, laat me het downloaden!)

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

(Ik heb al een beheerder - laat me doorgaan met de installatie!)

Maker
Artem Zaytsev
Beoordelingen
0 0 0
Versie
0.0.1.1
Gemaakt op
19-12-2019
Bijgewerkt op
19-12-2019
Grootte
2,39 KB
Licentie
N.v.t.
Wordt toegepast op

The youtube HTML5-player has 3 different bindings for the keyboard arrow buttons. The chosen binding depends on which of the player control elements has focus.
What is focus? The element is called focused if it is activated by mouse click or via the keyboard when using Tab / Shift+Tab keys. The focused element has privileged keyboard input control. For example if the play button is focused, then pressing the Space keyboard button will start the video playing.
In fact all these different keyboard bindings bring more confusion than help as the user usually doesn't know which control element has focus (the indications are very poor) at the moment when he wants to use the keyboard.
So these arrow buttons 3 different bindings are:
1. If the volume control bar has the focus: left/down - lowers the sound volume, right/up - raises the volume.
2. If the playback seekbar has the focus: left/down - jumps backwards in the video, right/up - jumps forwards.
3. If any other control has the focus: down/up - changes the sound volume, left/right - jumps in the video playback.

What does this script is escape all this confusion: No matter which control has the focus - there's always 3rd behavior in action.