O'Reilly logo

Greasemonkey Hacks by Mark Pilgrim

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Search

Hacks 47–59: Introduction

Search: next to shopping, emailing, and downloading pornography, it’s the most popular activity on the Web. With billions of pages in no particular order, search engines have risen to prominence as the gatekeepers of the Internet. Those that survived the dot-com boom and bust are now worth hundreds of billions of dollars, and they probably deserve it. (They certainly deserve it more than their dot-com predecessors. Remember Pets.com? Man, that was a great business model. “Hey, let’s sell 50-pound bags of dog food with free shipping.” Brilliant.)

Google is currently the undisputed king of search, so many of the hacks in this chapter focus on Google. But there are hacks here for Yahoo! users too, and a few that work with any search engine.

Add a Site Search

Google can restrict your search to a specific site. You can take advantage of this feature to add a site search to every page you visit.

There are two ways to restrict Google to return pages on a specific site. The first way is to use the site: keyword in your search results, like this:

	foo site:example.com

This Google search searches for foo but returns only pages on the example.com domain. On the search results page, the URL looks like this:

	http://www.google.com/search?hl=en&q=foo+site%3Aexample.com

The second way is to do it in two steps. First, search for foo; then, at the bottom of the search results, click “Search within results.” You will get to a page with another search form, where ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required