Skip to content

Instantly share code, notes, and snippets.

@parshap
Last active January 24, 2024 17:56
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save parshap/b445a549a7002d122ab2 to your computer and use it in GitHub Desktop.
Save parshap/b445a549a7002d122ab2 to your computer and use it in GitHub Desktop.
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

@ryparker
Copy link

Thanks for sharing the duck duck go query!

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