Hacker News new | ask | show | jobs
by vgalin 1518 days ago
You can achieve the same result on Firefox without any extention (and maybe Chrome too). To do so have use "Custom Keywords"[0], which kind of allow you to change the behaviour of your search bar. For example, one of my keywords is "rd", and typing "rd my search" in my search bar launch a search on Google with "my search site:reddit.com".

I've seen people doing really cool things using these custom keywords and JS, I don't know if it is very practical but the possibilities are endless.

[0] https://www-archive.mozilla.org/docs/end-user/keywords.html

3 comments

I use this extensively on FF desktop but sadly, I don't think I it's available on FF mobile. Has anyone had any luck finding a solution on mobile without needing to type in the extra ~15 character suffix?
On iOS I use Settings –> General –> Keyboards –> Text Replacement to define a replacement “sr” –> “site:reddit.com”. There’s probably some equivalent on Android.
Chrome can do the same via search engine shortcuts. This actually should be considered a basic browser feature, and as far as I can tell virtually every desktop browser since IE3 in 1996 does have it built in, it’s just not very well known.
Not sure why you're being downvoted. Such shortcuts (aka Site Search in Chrome) are a longstanding feature in Chrome, and it's unclear why you might need or want to do with a browser plugin instead.
What I'd really like to see is some way to important some giant list of them, like duckduckgos list of bangs.