Skip to content

Instantly share code, notes, and snippets.

@daveaiello
Last active April 13, 2017 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daveaiello/365054 to your computer and use it in GitHub Desktop.
Save daveaiello/365054 to your computer and use it in GitHub Desktop.
This is a JavaScript you can drop into your Bookmarks Bar and click on to search the current website via Google. I can't remember where I got it from originally.
javascript:Qr=prompt('Search%20Site%20for','');if(Qr)location.href='http://www.google.com/search?&q=site:'+encodeURIComponent(window.location.hostname)+'+'+escape(Qr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment