[search] Perform dynamic searches in Google

Primary tabs

6 posts / 0 new
Last post
Alessandro Segalini's picture
Joined: 5 Oct 2005 - 5:14pm
[search] Perform dynamic searches in Google
0

I'd appreciate if you could please tell me which are the most useful "string" to perform a dynamic search in Google, e.g. site:typophile.com, or what happen if I use the "quotes" ?

Thomas Binder's picture
Offline
Joined: 13 Jan 2006 - 9:04am
0

i do it this way.

site:typophile.com [Gill]

BTW. i tried
site:typophile "Gill"
ending up with the same results

Tim Daly's picture
Offline
Joined: 11 Sep 2003 - 9:04am
0

If you use the quotes on a pair of words for example "humanist Gill" you will get substantially different returns to [humanist gill], in fact the brackets made no difference to not having them. The key, I think, is that the quotes will produce results where those words follow each other, albeit including between them any of the terms and short common words that google ignores like punctuation and of, and, the.

Tim

Tiffany Wardle's picture
Offline
Joined: 13 Jul 2001 - 11:00am
0

javascript:void(q=prompt('Search%20Typophile:',''));if(q)void(location.href='http://www.google.com/search?q=site:typophile.com'+'%20'+escape(q))

Copy that into your address bar and then bookmark it. This is something which Grant Hutchinson made a while back. Smooth as silk.

Vincent Grouls's picture
Offline
Joined: 21 Feb 2007 - 12:40pm
0

This is one I have written and it works on any site. You can select text from any page. When you press the 'search' button it will prompt you to type in a phrase, with the selected text already in the box. Just press 'OK' and a new window will open with Google search results.

javascript:void(function()%20{%20var%20href%20=%20window.location.hostname;
%20var%20query%20=%20prompt('Enter%20a%20search%20phrase:',%20window.getSelection());
%20if(!query)%20{%20return%20false;%20}%20window.open('http://www.google.com/search?q=site:'+href+'+'+encodeURIComponent(query));%20}());

If you prefer to stay in the same window however, use this one:

javascript:void(function()%20{%20var%20href%20=%20window.location.hostname;
%20var%20query%20=%20prompt('Enter%20a%20search%20phrase:',%20window.getSelection());
%20if(!query)%20{%20return%20false;%20}%20window.location.href%20=%20'http://www.google.com/search?q=site:'+href+'+'+encodeURIComponent(query);%20}());

Copy to a text file and make sure it is all on one line. Then simply bookmark it. Tested on Mac (Safari, Omniweb & Firefox).

Alessandro Segalini's picture
Joined: 5 Oct 2005 - 5:14pm
0

Thank you !