Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Chrome shortcut to search MDN

mdn Chrome Search Shortcut

Shortcut to perform a Google I'm Feeling Lucky search on https://developer.mozilla.org.

MDN search animation

1. Settings: Manage search engines...

Google Chrome Settings Page

2. Add other search engine

Google Chrome Search Engines Settings Page

mdn
https://www.google.com/search?btnI&q=site%3Adeveloper.mozilla.org+%s
@jjspace
Copy link

jjspace commented Dec 9, 2019

The "I'm Feeling Lucky" url now forces a "Redirect Notice" so this method no longer works as nice as it probably used to.
A solution is to use DuckDuckGo's top hit search instead.
Uses forward slash before the query terms: https://duckduckgo.com/?q=\QUERY
This would make the search query for the custom engine (the last link in the guide)

https://duckduckgo.com/?q=\site%3Adeveloper.mozilla.org+%s

This will achieve the same functionality by taking you dierctly to MDN's page.

Extra side note. DuckDuckGo has a thing called Bang notation which searches within the target site.
If you wanted to perform a search ON MDN's site instead of just going to the first result use the query string

https://duckduckgo.com/?q=!mdn+%s

@ahmafi
Copy link

ahmafi commented Jan 13, 2022

You can also search directly in MDN with this search URL (for those who got here with google):

https://developer.mozilla.org/en-US/search?q=%s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment