Created
January 27, 2012 23:50
-
-
Save grandinquisitor/1691648 to your computer and use it in GitHub Desktop.
simplest possible 'search this site' bookmarklet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function()%7Bvar%20s;(s=(prompt('search%20within%20'+location.hostname)%7C%7C'').replace(/%5Es+%7Cs+$/g,''))&&(location.href='http://www.google.com/search?q=site:'+location.hostname+'+'+encodeURIComponent(s));%7D)() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment