你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/427948-preserve-focus,源站連結 點此以跳轉。
When re-focusing page content, return focus to element that was active before blur, instead of root element.
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.)