4 ms·
Or just right-click the input field, and if the browser recognizes it as a search field (they're good at it by default, but you can implement https://github.com
by johnnyworker 3y ago
Or just right-click the input field, and if the browser recognizes it as a search field (they're good at it by default, but you can implement https://github.com/dewitt/opensearch https://github.com/dewitt/opensearch to make extra sure), you'll get an option to create a search from it, with a keyword of your choosing (haven't tried Safari).
- raybb 3y agoI implemented it for OpenLibrary (https://github.com/internetarchive/openlibrary/pull/5104 https://github.com/internetarchive/openlibrary/pull/5104) and it was surprisingly easy and works well!
- cubefox 3y agoAt least at some point in the past, this method had the advantage of working also with POST searches, while the manual insertion of %s works only with GET.