Add Search Shortcuts on your Android or iPhone

How do you search a popular website, say Twitter or YouTube, on your mobile phone? You would launch the browser, open the corresponding website and then use the search box inside that site. Or you would use the mobile app, if you have installed one.

There’s an alternate way as well. You may consider installing search shortcuts on the home screen of your mobile phone and they will help you perform searches on your favorite website with fewer steps.

Search your favorite websites with fewer steps Search your favorite websites with a tap

Let’s dive right into an example.

Open the Safari browser on your iPhone (or iPad) and click here to open the search shortcut for Wolfram Alpha. A pop-up dialog will open but since we are installing the shortcut, hit the Cancel button to close that dialog. Now tap the Share icon in Safari and choose “Add to Home Screen” to add that search shortcut to your home screen.

The next time you want to search Wolfram on your phone, tap the Wolfram shortcut available on your home screen, enter the search terms and it will take you directly to the search results on the Wolfram website. That’s just one tap.

You can similarly add search shortcuts on your Android device using the newer version of Chrome browser. Open any of the search shortcuts listed below, “cancel” the pop-up dialog and then choose the “Add to homescreen” option under the main menu to place a shortcut on your homescreen for quick access.

Search Shortcuts for Android and iOS

Here are some ready-to-install search shortcuts for some popular websites that you may add to the homescreen of your Android or iOS device.

  1. Twitter Search
  2. YouTube Search
  3. Google I’m Feeling Lucky
  4. Wolfram Alpha
  5. Google Image Search
  6. Bing Search
  7. Amazon Search
  8. Google+ Search
  9. Wikipedia Search
  10. Facebook Search

Write your own Search Shortcuts

A search shortcut is essentially a little piece of JavaScript, much like a bookmarklet, that accepts input through a pop-up dialog and redirects the user to the search results page.

Writing one is easy. For instance, here’s the code for the Google I’m Feeling Lucky shortcut that automatically transports you to the first search result (useful when you don’t remember the exact URL of a site).

<!-- Page Title -->
<title>Feeling Lucky</title>

<!-- Touch Icon - This will show up on the home screen -->
<link rel="apple-touch-icon" href="lucky.png" />

<script>
    var u = "http://www.google.com/";
    <!-- Show the input dialog -->
    var q = window.prompt('What are you looking for?','');
    if(q) {
        /* If the user has entered input, redirect to search results */
        u = u + "/search?&btnI=I%27m+Feeling+Lucky&q=" + escape(q);
        window.location.href = u;
    } else {
        /* If the user hits cancel, show helper text and do nothing */
        document.write("Add me to your home screen");
    }
</script>

All you need to know is the URL of the search results page and use it in line #13.

Amit Agarwal

Amit Agarwal

Google Developer Expert, Google Cloud Champion

Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India.

Amit has developed several popular Google add-ons including Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

0

Awards & Titles

Digital Inspiration has won several awards since it's launch in 2004.

Google Developer Expert

Google Developer Expert

Google awarded us the Google Developer Expert award recogizing our work in Google Workspace.

ProductHunt Golden Kitty

ProductHunt Golden Kitty

Our Gmail tool won the Lifehack of the Year award at ProductHunt Golden Kitty Awards in 2017.

Microsoft MVP Alumni

Microsoft MVP Alumni

Microsoft awarded us the Most Valuable Professional (MVP) title for 5 years in a row.

Google Cloud Champion

Google Cloud Champion

Google awarded us the Champion Innovator title recognizing our technical skill and expertise.

Email Newsletter

Sign up for our email newsletter to stay up to date.

We will never send any spam emails. Promise.