7

This has been asked before but none of other methods are working now.

Previously we were able to set Address Bar search or Search Bar to I'm Feeling Lucky, but Firefox has put a limit on those ways.

Is there any way now to add Google's I'm Feeling Lucky to Firefox's Search Bar or Address Bar?

I search a lot and 99% of the times I want the first result, while this might look being lazy for a click, I estimated that it is actually taking hours of my time monthly.

4 Answers 4

9

The URL for Google's "I'm Feeling Lucky" button is https://google.com/search?btnI=&q=%s (where %s is your search term).

The icon used is http://www.google.com/favicon.ico

Knowing these two, all you need to do is to construct your own OpenSearch XML plugin. Now you can do this manually of course, but there are sites that can do the work for you so why not use those?

One such site is Ready2Search. I already made the plugin for you. If you want to review or modify it just go here. To install the plugin in IE, Firefox or Chrome, just click the link that says "OpenSearch plug-in GoogleLucky" (to the right of the 3 browser icons). If you want to view the generated XML, click the "Download the setting of OpenSearch" button.

Enjoy!

2
  • Thanks for being so awesome, I wasn't hoping for any replies at all, but yours fixed my issue in 5 sec :) wish you the best in life.
    – Ara
    Jun 1, 2015 at 22:29
  • You're most welcome. :)
    – Karan
    Jun 1, 2015 at 22:43
4

In Firefox, you can use the keyword search feature. Create a bookmark like this:

I'm Feeling Lucky Quicklink

Then in the URL bar, you can type gl your search query to be taken to the "I'm Feeling Lucky" results for "your search query".

5
  • what is this feature called? (replacing %s with argument) are there other placeholders available? thank you! Nov 21, 2016 at 6:09
  • Apparently it's called "keyword search"; link added in answer. Nov 23, 2016 at 1:43
  • 1
    i get an forwarding note with this and have to click to be forwarded. how to skip that? Mar 21, 2021 at 23:01
  • I've noticed that started happening recently, and I don't know of an easy way (short of a browser plugin) to skip it. My guess is that they've instituted this as a security measure. Imagine if a malicious actor arranged for the number one hit for some rare phrase ("horse battery staple badguy"?) to be a compromised site, and then phished users by sending them "obviously safe" google links that silently land them at the compromised page. Mar 23, 2021 at 0:06
  • It doesn't look the same any more, but this still works. I had to set browser.urlbar.update2.engineAliasRefresh to true in about:config to get an "Add" button on the search engines. This script skips the redirect notice page greasyfork.org/en/scripts/….
    – Frans
    Oct 6, 2021 at 8:30
2

Save the following to a file 'googlefeelinglucky.xml' and place it in "%APPDATA%\Mozilla\Firefox\Profiles\XXXXXXXX.default\searchplugins"

<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
<ShortName>FeelingLucky</ShortName>
<Description>Google's I'm Feeling Lucky Search</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image height="16" width="16" type="image/x-icon">http://www.google.com/favicon.ico</Image>
<Url type="text/html" method="get" template="https://www.google.com/search?btnI&amp;q={searchTerms}"></Url>
<Url type="application/x-suggestions+json" template="http://suggestqueries.google.com/complete/search?output=toolbar&amp;hl=en&amp;q={searchTerms}&amp;gl=ca"/>
<SearchForm>https://www.google.com/search</SearchForm>
</SearchPlugin>

If you don't want to do that, you can just click on the Google (I'm Feeling Lucky) link here:

http://mycroftproject.com/dlstats.html

Creating Mozilla Search Plugins:

https://developer.mozilla.org/en-US/docs/Creating_MozSearch_plugins

1

*Works for firefox (I believe there should be a similar thing for chrome as well)

Well, if you are really feeling lucky, it mean you must also be feeling ducky. So here's how you use duckduckgo as your on-demand I'm feeling lucky search engine:

TLDR; I'm feeling LUCKY = I'm feeling DUCKY 🦆

  1. Go to duckduckgo.com
  2. right click on search box and click Add a keyword for this seacrh
  3. Name the bookmark . to save space on your bookmarks bar.
  4. Set the keyword to d

Then this is how you search in the browser address bar when you feeling lucky:

d wikipedia !

How it works:

d : searches on duckduckgo

! : takes you to the first search result

3
  • 1
    A great answer, I had forgotten about the bangs. Confirmed to work also on lite.duckduckgo.com.
    – user198350
    Jul 20, 2023 at 8:10
  • And to add, adding a keyword isn't necessary, you can simply search duckduckgo.com anyway you prefer (including from the homepage).
    – user198350
    Jul 20, 2023 at 8:20
  • yeah that's really cool. learned about the ddg lite. I prefer to use it with the keyword because i want google as my default search but still be able to use the ddg bangs from the address bar
    – gndps
    Jul 20, 2023 at 16:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .