40 productivity-boosting search bookmarklets

24th Jun 2009 | 11:30

40 productivity-boosting search bookmarklets

Instantly add powerful new search features to your browser

General and repeat search

If you'd like to add faster search functionality to your browser than you could just install a toolbar or other add-on. But that'll probably consume system resources, slow down your browser, and maybe even make it more unstable.

A simpler idea is to use bookmarklets, tiny JavaScript applets that live in your browser bookmarks and consume no resources at all (apart from a tiny amount of disk space) until you use them. Here's how they work.

Let's suppose you regularly want to look up information on Microsoft's new search engine, Bing.

You would first create a favourite to hold this applet (click Favorites > Add to Favorites in IE, Bookmarks > Bookmark this Page in Firefox).

Now right-click it, and select Properties.

Change the description to something like "Search Bing".

Then replace its URL with the following JavaScript code.

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://www.bing.com/search?q=" + escape(q).replace(/ /g, "+"); void 0

Save the changes and you're done.

(Alternatively, open this HTML file. It contains direct links to the bookmarklets - something we can't do here for security reasons - which you can simply drag and drop onto your favourites bar.)

Now highlight a word on this page - bookmarklets, say - and click the bookmarklet favourite to run a Bing search on that term.

Or, if you want to search Bing for some other term, then click the bookmarklet without highlighting anything. You'll be prompted for your search query and see the results right away.

Useful, right? And this is just the start. Keep reading and you'll find 40 more lightweight, quick and easy ways to speed up your web searches.

(All bookmarklets based on original work by Greg R. Notess).

General search bookmarklets

Forget the toolbars, ditch the extensions, and don't bother entering a search engine URL. If you see a term you want to search for then highlight it on the current page and click one of our bookmarklets to run a search. Or just click one and enter your search terms.

Search Google

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://google.com/search?query=" + escape(q).replace(/ /g, "+")+'&num=10'; void 0

Search Yahoo

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://search.yahoo.com/bin/search?p=" + escape(q).replace(/ /g, "+"); void 0

Search Bing

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://www.bing.com/search?q=" + escape(q).replace(/ /g, "+"); void 0

Search Ask

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://www.ask.com/web?q=" + escape(q).replace(/ /g, "+"); void 0

Bing

QUICK BING: There are easier ways to access Bing

Repeat search bookmarklets

Sometimes you'll run a search at Google, say, and find it doesn't really deliver what you need. And so you'll laboriously enter a new search engine URL, re-type your query and hope for better results. Now there's an easier way. If a search engine fails, then just click one of our bookmarklets to repeat the same search elsewhere.

Repeat at Google

javascript:Q=[]; c=location.search.slice(1).split('&'); for (i in c) { f=c[i].split('='); if (f[0]=='q' || f[0]=='as_q' || f[0]=='p' || f[0]=='query') if (f[1]) Q.push(f[1]) } R=unescape(Q.join('; ').replace(/\+/g,' ')); location = 'http://google.com/search?query=' + escape(R);

Repeat at Yahoo

javascript:Q=[]; c=location.search.slice(1).split('&'); for (i in c) { f=c[i].split('='); if (f[0]=='q' || f[0]=='as_q' || f[0]=='p' || f[0]=='query') if (f[1]) Q.push(f[1]) } R=unescape(Q.join('; ').replace(/\+/g,' ')); location = 'http://search.yahoo.com/bin/search?p=' + escape(R);

Repeat at Bing

javascript:Q=[]; c=location.search.slice(1).split('&'); for (i in c) { f=c[i].split('='); if (f[0]=='q' || f[0]=='as_q' || f[0]=='p' || f[0]=='query') if (f[1]) Q.push(f[1]) } R=unescape(Q.join('; ').replace(/\+/g,' ')); location = 'http://www.bing.com/search?q=' + escape(R);

Repeat at Ask

javascript:Q=[]; c=location.search.slice(1).split('&'); for (i in c) { f=c[i].split('='); if (f[0]=='q' || f[0]=='as_q' || f[0]=='p' || f[0]=='query') if (f[1]) Q.push(f[1]) } R=unescape(Q.join('; ').replace(/\+/g,' ')); location = 'http://www.ask.com/web?q=' + escape(R);

Yahoo

DO IT AGAIN: Repeat your search at a second search engine in just one click

Image and video search

Image searching bookmarklets

Need a picture, graph or diagram? Just highlight relevant text on a web page and click one of our image-finding bookmarklets. Or you can select one without highlighting anything, in which case you'll be prompted for your search terms.

Search Google images

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://images.google.com/images?hl=en&q=" + escape(q).replace(/ /g, "+"); void 0

Search Yahoo images

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://images.search.yahoo.com/search/images?p=" + escape(q).replace(/ /g, "+"); void 0

Search Bing images

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://www.bing.com/images/search?q=" + escape(q).replace(/ /g, "+"); void 0

Search flickr

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://www.flickr.com/search/?q=" + escape(q).replace(/ /g, "+"); void 0

Search photobucket

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://photobucket.com/images/" + escape(q).replace(/ /g, "+"); void 0

Image search

PICTURE THIS: Bookmarklets make it easier to find the pictures you need

Video searching bookmarklets

With hundreds of millions of videos online it's not always easy to track down what you need, but our bookmarklets can help speed up the process. Highlight keywords on a web page and click one for immediate search results.

Search YouTube

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://www.youtube.com/results?search_type=&search_query=" + escape(q).replace(/ /g, "+"); void 0

Search MySpace video

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://searchservice.myspace.com/index.cfm?fuseaction=sitesearch.results&type=MySpaceTV&qry=" + escape(q).replace(/ /g, "+")+"&submit=Search"; void 0

Search dailymotion

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://www.dailymotion.com/relevance/search/" + escape(q).replace(/ /g, "+"); void 0

Search MetaCafe

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://www.metacafe.com/tags/" + escape(q).replace(/ /g, "+"); void 0

Search blip.tv

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://blip.tv/search?q=" + escape(q).replace(/ /g, "+"); void 0

Video search

MOVIE SEARCH: Uncover new videos faster than ever before

News and reference search

News searching bookmarklets

Keep yourself up-to-date with our news bookmarklets. They work much like all the others: create a new bookmark, add an appropriate description, replace its URL with the JavaScript code and you're ready to go.

Search BBC

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://search.bbc.co.uk/search?q=" + escape(q).replace(/ /g, "+")+'&tab=ns&scope=all'; void 0

Search CNN

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://search.cnn.com/search.jsp?query=" + escape(q).replace(/ /g, "+")+'&type=news&sortBy=date'; void 0

Search ITN

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://itn.co.uk/search?q=" + escape(q).replace(/ /g, "+"); void 0

Search Sky

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://news.sky.com/skynews/Sky-Search?searchTextBox=" + escape(q).replace(/ /g, "+")+'&searchType=news'; void 0

Search Yahoo

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://news.search.yahoo.com/news/search?p=" + escape(q).replace(/ /g, "+"); void 0

News search

IN THE NEWS: Search more news sites - and keep yourself informed

Reference source searching bookmarklets

The web is full of information-packed sites, and with our bookmarklets they're easier to access than ever. If you're reading an article about a film director, say, and want to find out more, then highlight his name with the mouse and click the IMDB bookmarklet for a complete career low-down.

Search Wikipedia

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://en.wikipedia.org/wiki/Special:Search?search=" + escape(q).replace(/ /g, "+")+'&go=Go'; void 0

Search howstuffworks

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://www.howstuffworks.com/search.php?terms=" + escape(q).replace(/ /g, "+"); void 0

Search Yahoo Answers

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://answers.yahoo.com/search/search_result?p=" + escape(q).replace(/ /g, "+"); void 0

Search eHow

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://www.ehow.com/Search.aspx?s=" + escape(q).replace(/ /g, "+"); void 0

Search IMDB

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://www.imdb.com/find?s=all&q=" + escape(q).replace(/ /g, "+"); void 0

Search Wolfram Alpha

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://www.wolframalpha.com/input/?i=" + escape(q).replace(/ /g, "+"); void 0

Shopping and social networking search

UK shopping search bookmarklets

When you find a real bargain online then it's tempting to buy right away. But don't part with any cash until you've compared the prices available at other stores. Select the product name on the page, then click one of our bookmarklets to search for better deals.

Search Shopping.com

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://uk.shopping.com/xFS?KW=" + escape(q).replace(/ /g, "+"); void 0

Search Google Shopping

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://www.google.co.uk/products?q=" + escape(q).replace(/ /g, "+"); void 0

Search ciao

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://www.ciao.co.uk/sr/q-" + escape(q).replace(/ /g, "+"); void 0

Search Amazon

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://www.amazon.co.uk/s/field-keywords=" + escape(q).replace(/ /g, "+"); void 0

Search eBay

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://shop.ebay.co.uk/" + escape(q).replace(/ /g, "+"); void 0

Search mySupermarket

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://www.mysupermarket.co.uk/Shopping/FindProducts.aspx?Query=" + escape(q).replace(/ /g, "+"); void 0

Shopping search

SAVE MONEY: Make sure you're getting the best possible deal with our shopping bookmarklets

Social networking search bookmarklets

If you want to find out more about someone then their social networking profiles are a very good place to start. Just select their name on the page, then click one of the bookmarklets here to track them down.

Search MySpace

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://searchservice.myspace.com/index.cfm?fuseaction=sitesearch.results&qry=" + escape(q).replace(/ /g, "+")+'&type=People'; void 0

Search Facebook

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://www.facebook.com/home.php#/s.php?ref=search&init=q&q=" + escape(q).replace(/ /g, "+"); void 0

Search Bebo

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://www.bebo.com/Search2.jsp?SearchTerm=" + escape(q).replace(/ /g, "+"); void 0

Search Friendster

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://www.friendster.com/search/user?query=" + escape(q).replace(/ /g, "+"); void 0

Search hi5

javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("Enter your search here", ""); if (q!=null) location="http://hi5.com/friend/processBrowseSearch.do?&searchText=" + escape(q).replace(/ /g, "+"); void 0

MySpace

FRIEND FINDER: Point. Click. Find your friends

-------------------------------------------------------------------------------------------------------

Liked this? Then check out 101 Google tips, tricks and hacks

Sign up for the free weekly TechRadar newsletter
Get tech news delivered straight to your inbox. Register for the free TechRadar newsletter and stay on top of the week's biggest stories and product releases. Sign up at http://www.techradar.com/register

Follow TechRadar on Twitter

search
Share this Article
Google+

Apps you might like:

Most Popular

Edition: UK
TopView classic version