Preserve focus

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

作者
myf
今日安裝
0
安裝總數
25
評價
0 0 0
版本
1.0
建立日期
2021-06-14
更新日期
2021-06-14
尺寸
989 位元組
授權條款
未知
腳本執行於
所有網站

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.)

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址