I want to add a bookmark keyword in Firefox for Google's I'm Feeling Lucky but the URL changes too quickly for me to copy it.
- 535
5 Answers
It's http://www.google.com/search?q=%s&btnI=I'm+Feeling+Lucky (from the bottom of your link), where '%s' is the search string.
- 1,437
The link in @Andy Mikula's answer no longer works since Google takes you to a 'redirect confirmation' page—thus beating the purpose of using the bookmarklet.
The alternative is to change the default search engine in your browser to DuckDuckGo.com. Then use the '!' (exclamation mark) followed by space and your search term. If you need to use regular Google, you will need to visit the site and search there.
This link for example searches for "French Military Victories"
http://www.google.com/search?hl=en&q=french+military+victories&btnI=745
- 340
If you just type your search terms into the address bar in Firefox, it will perform an 'I'm feeling lucky' search by default.
You may have issues with your ISP redirecting you to a lame 'domain not found' page, though. This is because Firefox attempts to look up the site first and only performs the search once the lookup fails. My ISP allowed me to opt out of it, so it's not a big issue.
- 133
@LWTBP noted that @Andy Mikula's answer "no longer works since Google takes you to a 'redirect confirmation' page."
A few potential workarounds:
https://www.google.com/search?btnI=1&q=%s: an answer to a similar question onwebapps.stackexchange.comsuggests this URL, which works for me when combined with the Redirect Google Redirects chrome extension. I've also had success using that extension in combination with @Andy Mikula's answer.https://www.google.com/search?q=%s&btnI=&sourceid=navclient&gfns=1: as of 2023-05, this url works for me sometimes. In my experiments, this URL skipped the redirect page when used with Google Chrome but not with Firefox. Also, the "I'm feeling lucky" feature kicks in only sometimes. Other times, it seems to give a normal google search page. For example, searching forgithub pyrightwith this url might give a google search page, whereassite:github.com pyrightsuccessfully redirects to https://github.com/microsoft/pyright. The URL suggested above comes from a review that I read on the reviews page of the Redirect Google Redirects chrome extension.
In each of the above sugggested URLs, %s is the search string.
- 99