News for hackers. Stuff that matters.
Re:Firefox Address Bar Tips by johnnyworker on Monday July 10, 2023 @10:21AM (#36666883)
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 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).
Re:Firefox Address Bar Tips by raybb on Monday July 10, 2023 @11:15AM (#36667649)
I implemented it for OpenLibrary (https://github.com/internetarchive/openlibrary/pull/5104) and it was surprisingly easy and works well!
Re:Firefox Address Bar Tips by cubefox on Monday July 10, 2023 @11:17AM (#36667680)
At 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.