Skip to content

Instantly share code, notes, and snippets.

@stantont
Created April 9, 2014 02:00
Show Gist options
  • Save stantont/10218833 to your computer and use it in GitHub Desktop.
Save stantont/10218833 to your computer and use it in GitHub Desktop.
javascript: var host %3D document.location.hostname.split(%27.%27)%3B if (host.length > 2) %7B host %3D host%5Bhost.length-2%5D %2B %27.%27 %2B host%5Bhost.length-1%5D%3B %7D else %7B host.join(%27.%27)%3B %7D document.location %3D %27https://duckduckgo.com/%3Fq%3D%27 %2B prompt(%27Search term%27) %2B %27%26sites=%27 %2B host%3B
@stantont
Copy link
Author

stantont commented Apr 9, 2014

Modified an existing Google site search bookmarklet gotten from who knows where.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment