Greasy Fork is available in English.

Preserve focus

When re-focusing page content, return focus to element that was active before blur, instead of root element.

Δημιουργός
myf
Ημερήσιες εγκαταστάσεις
0
Σύνολο εγκαταστάσεων
24
Βαθμολογίες
0 0 0
Έκδοση
1.0
Δημιουργήθηκε την
14/06/2021
Ενημερώθηκε την
14/06/2021
Άδεια
Μη διαθέσιμη
Εφαρμόζεται σε
Όλοι οι ιστοχώροι

This always drove me nuts: having focused element in mid-page and switching away from the page (to URL bar for example), browser gives me zero means to quickly return to same element without painfully tabbing again.

This super simple script fixes it: when returning focus to the page, it moves it last focused element.

(I think this is what browsers should do by default.)