Add Search Shortcuts on your Android or iPhone

Published in: Android - iPad - iPhone - Search

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" />

    var u = "";
    <!-- 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");

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

📮  Subscribe to our Email Newsletter for Google tips and tutorials!
Published in: Android - iPad - iPhone - Search

Looking for something? Find here!

Meet the Author

Web Geek, Google Developer Expert
Amit Agarwal

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. He is the developer of Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

Get in touch

Google Add-ons

Do more with your Gmail and GSuite account

We build bespoke solutions that use the capabilities and the features of Google Workspace for automating business processes and driving work productivity.

  1. Mail Merge with Attachments
    Send personalized email to your Google Contact with a Google Sheet and Gmail
  2. Save Emails and Attachments
    Download email messages and file attachments from Gmail to your Google Drive
  3. Google Forms Email Notifications
    Send email notifications to multiple people when a new Google Form is submitted
  4. Document Studio
    Create beautiful pixel perfect documents merging data from Google Sheets and Google Forms
  5. Creator Studio for Google Slides
    Turn your Google Slides presentations into animated GIFs and videos for uploading to YouTube