你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/7902-autofocus-searchboxes/discussions/18706,源站連結 點此以跳轉。
Focus the searchboxes of sites like wikipedia and amazon when visiting a site so you dont have to click it
Useful, but flawed by intercepting keyboard navigation
I've always thought that not giving the search box focus was a strange decision at Wikipedia. Now, I may understand why that decision was made. While the input box is receiving keystrokes, the keyboard navigation keys PgUp, PgDn, and up/down arrow don't cause the page to scroll. I've edited my local copy to work only on the front page of Wikipedia. A better solution would be to pass on the above-mentioned keystrokes, since the input box can't make use of them anyway.
In short: Removes a long-standing annoyance, but creates a new one.