Find Similar Items

A simple JavaScript tool to quickly list auctions similar to the one you’re looking at.

I’m always excited to discover something new while searching on eBay, but I’ve been around long enough to know that there’s virtually no such thing as “one of a kind.”

When you’ve found an item you’re interested in, it’s often helpful to look for other auctions for similar items, either to compare prices or perhaps to find something better. Typically, this requires opening a search box and typing the name of the item for which to search. Here’s a quick hack that will eliminate these steps and list similar items with a single click.

Create a new button on your browser’s Links bar (see Customizing the Links Bar for details) and type the following JavaScript code, all on one line, into the new link:

javascript:void(win=window.open(
       'http://search.ebay.com/ws/search/SaleSearch?satitle='+
       document.title.substring(document.title.indexOf(' - ')+3)))

Make sure to note the capitalization of the JavaScript code, such as the uppercase “O” in the indexOf keyword. Note also the spaces around the hyphen (' - '). You can name the new link anything you like, such as “Find Similar.”

Then, open any auction page and click the new link, as shown in Figure 2-2. (Naturally, the hack won’t work on a non-auction page.) A new window will appear with search results matching the title of the auction you were just looking at, which, in theory, should contain at least one auction. ...

Get eBay Hacks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.