How to search your favorite site directly from Chrome's address bar in two keystrokes

Search for the address bar
(Image credit: Future)
6

Whether you work on a website like I do or you just have a favorite site you rely on for information, you probably find yourself wanting to search that domain. Many sites have their own search engines, but they generally aren't as good as just using Google to query that site, and they can't be triggered from your browser's address bar.

If you want to search a site from your browser's address bar, you can simply add "site:[SITENAME]" to the end of your query, but that's a fair amount of typing. For example, if I want to find the best CPUs page on Tom's Hardware from my address bar, I have to type "best cpus site:tomshardware.com" and hit Enter. The site:tomshardware.com is an extra 21 keystrokes I must make for every single query. And, if I want to tell Google not to include results from our forums subdomain, I have to tack on "-site:forums.tomshardware.com" to the query. That's a total of 51 keystrokes added to my query!

Latest Videos FromTom's Hardware
Avram Piltch
Managing Editor: Special Projects

Avram Piltch is Managing Editor: Special Projects. When he's not playing with the latest gadgets at work or putting on VR helmets at trade shows, you'll find him rooting his phone, taking apart his PC, or coding plugins. With his technical knowledge and passion for testing, Avram developed many real-world benchmarks, including our laptop battery test.

  • Alvar "Miles" Udell
    Has been a thing for a while to just add the search term to Chrome or Edge in its custom search engine box. TomsHardware's, for example, would be:

    https://www.tomshardware.com/search?searchTerm=%s
    Comes with the added benefit of syncing across devices, not requiring any extension, and already excludes subs like forums.tomshardware.com since it has its own search function not included in the main TomsHardware search, so no need to add additional exclusions. The TH forum's address would be

    https://forums.tomshardware.com/search/6764509/?q=%s

    Personally I think your extension is more complicated and less efficient to use than the in-built system, especially if you have to manually exclude subs, like forums, from every site.

    At least I assume TH's EIC coded the extension himself and didn't ask Copilot or Bard to write it.
    Reply
  • Plbowers
    You should look into dtrt (do the right thing). It will change your life if you like stuff like this.
    Reply
  • CmdrShepard
    Or I could just use Brave instead of Chrome and configure my own search engines and keywords manually.
    Reply
  • PEnns
    Or...one could use AutoHotKey to create a script to assign a shortcut (such as TH for -site:forums.tomshardware.com), and let the script load at Startup.

    Then, one would just type (for example) "best cpu" and then TH and hit the space bar. Done.

    I haven't typed my address (among many other long sentences) in years, I just enter addr instead.
    Reply
  • apiltch
    Alvar Miles Udell said:
    At least I assume TH's EIC coded the extension himself and didn't ask Copilot or Bard to write it.
    Yes. I wrote this, without any help from an AI. I have been writing extensions, web pages, etc for a long, long time. I made this one for my coworkers a long time ago, but then I realized that I could revise it slightly and set it to public in case anyone else might want it. I found that most people I work with prefer the simplicity of the extension to changing the advanced search settings, but to each their own, which is why I explained how to do it manually or via extension.
    Reply
  • jimmyeatcorn
    Reminds me of "Omni Search" - although I guess that's 3 keystrokes

    https://chromewebstore.google.com/detail/omni-search/khlgelgpghbdfngahnnnjbognacdjhga?pli=1
    Reply