Re:Firefox Address Bar Tips
by cubefox on Monday July 10, 2023 @11:03AM
(#36667486)
I think he meant the custom website keyword search.
[ Parent
| on HN ]
I did mean that, but it is possible to search for tabs, history, or bookmarks by starting your search with an @. E.g. `@tabs ycombinator`
This bookmarklet will work:
(function () { let sel = window.getSelection(); let Qr; if (sel && sel.toString().length > 0) {Qr=sel.toString()} else {Qr=prompt('Search Site for','');} let hna=window.location.hostname; if(Qr) { location.href='http://www.google.com/search?&q=site:'+encodeURIComponent(hna)+'+'+escape(Qr) }})();
You can attach to a keyboard shortcut with a launcher or applescript.