Main image for A Bookmarklet for Confining Google Search Results to a Specific URL Time to Read: ~1 min

We were looking for a simple way to search a web site from a specific path, not just from the root. For example, Google supports this by using the syntax "site: {search_term}", but rather than have to type that in each time, I created a bookmarklet that does the same thing, and more.

  1. Go to the page you want to search from.
  2. Click the bookmarklet you installed from below.
  3. Enter your search term at the prompt.
  4. From the Google results page, you can click the bookmarklet again to change the search term: no need to go back to the prior page.

Bookmarklet Code

Buy me a Coffee

Did you enjoy this? Did it help you? Make you laugh? Dare I say, all of the above? If you like my work — my writing, distributed work tips, #RemoteChat, or my other open source projects — you can buy me a ☕ and let me know what you think.