[youtube.com] Arrow buttons constant binding

The arrow buttons don't depend on slider/seekbar focus. Left/Right - always playback, Down/Up - always sound volume.

Από την 20/12/2019. Δείτε την τελευταία έκδοση.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

Δημιουργός
Artem Zaytsev
Βαθμολογίες
0 0 0
Έκδοση
0.0.1.3
Δημιουργήθηκε την
19/12/2019
Ενημερώθηκε την
20/12/2019
Μέγεθος
3 KB
Άδεια
Μη διαθέσιμη
Εφαρμόζεται σε

The youtube 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 the mouse click or via the keyboard when using Tab / Shift+Tab keys. The focused element has privileged keyboard input processing. For example if the play button is focused, then pressing the «space» keyboard button will start the video playing.
In fact all these 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/she/it presses the arrow keyboard buttons.
So these arrow buttons 3 different bindings are:
1. If the sound volume slider has the focus: Left/Down - lowers the sound volume, Right/Up - raises one.
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 this script does is escape all this confusion: neither the sound volume slider nor the playback seekbar from now on ever gets a focus - therefore there's always the 3rd behavior in action.