Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Don't forget you can use https://devdocs.io/ too which also searches MDN and store offline. The two are a great pair.


There is also mdn.io which can be used as shortcut in every browser like this (for a search for 'await'): http://mdn.io/await


It seems neat on the surface but it also seem to involve two redirects, first one to google.com (which is not obvious and personally not something I would like), and then to MDN. It would be cool if it linked directly to the page on MDN or showed the content directly within the page.

And the second time I clicked I was met with this message, not mdn.io's fault but nonetheless (i.e. "google police" - not sure what they mean with "unusual activity", there is hardly any at the moment - maybe not enough? :) or maybe I just got a busy vpn exit point): https://imgur.com/itn48dZ


Yup, that site seems to be basically redirector to Google redirector [1].

You can get the very same effect like DuckDuckGo keyword search but with "just the last redirect" with vanilla browser bookmark [2] with `%s` interpolation:

    https://www.google.com/search?btnI&q=%s%20site%3Adeveloper.mozilla.org
[1] https://github.com/lazd/mdn.io [2] https://www-archive.mozilla.org/docs/end-user/keywords.html - old page about feature in Firefox (currently the same works in Google Chrome as well). Amusing that the this `btnI` search is in the second example there.


If you set up your browser's default search engine as DuckDuckGo, this works from the location bar (at least in Firefox):

    !mdn await
This will perform a query to DuckDuckGo (the non-tracking search engine) first, and automatically redirect to MDN.

No need for extra add-ons; this is one of the standard set of 'bangs' DuckDuckGo provides.


If you go to chrome settings -> Manage search engines and define a new search engine with Keyword: "m" and "URL with %s in place of query": https://www.google.com/search?&q=site%3Adeveloper.mozilla.or... typing "m await" in the omnibar will jump to the first google result from MDN, which is what it seems mdn.io does.

https://news.ycombinator.com/item?id=15306429 is my list of custom search engines.


Was on a plane ride this weekend and was thinking how I needed to re-install Dash so I could have an offline docs viewer. Personally like the web format much better, thanks!


cool, i didn't know that site. wonderful ux

how's the content added though? its missing so many libraries i use...


They have a Trello board where you can suggest and vote on additions. https://trello.com/b/6BmTulfx/devdocs-documentation


Seems to be scraping public documentation pages

https://github.com/Thibaut/devdocs/#scraper


Here's an alternative if you would prefer a desktop app

https://zealdocs.org/


While we're on MDN related awesomeness, shameless plug: Back when I was in school, I made this Chrome extension which allows you to jump directly from the address bar to the MDN page you want:

https://chrome.google.com/webstore/detail/mdnjump/mfjekjhknp...


If you use DuckDuckGo as your standard search engine you can also prepend "!mdn" to your search query to search MDN.

This also works with any website wich supports search I think. Other good ones include "!hoogle", "!hn", "!yt", "!g", and the list goes on.


FYI, if you're already shortening the so-called "bangs", you could use "!h" for Haskell. :)

Worth pointing out: submitting bang ideas is very, very trivial, but the whole process may last months. Last time I've read about someone complaining about a long bang, I've submitted "!gw" as a shorter version of searching Gentoo's Wiki and it became a thing a couple of days ago. This is maybe fifth or sixth bang that I've submitted to them via https://duckduckgo.com/newbang.


This will bring you to a search result page, yes? My ext combines Google's I'm Feeling Lucky to jump straight to the page for the top result, which I find works 99% of the time I'm looking for something on MDN.


I'm using it as my primary source of documentation since a couple of years. Never been disappointed, and it saves a lot of clicks.


Yeah wow thanks! This is great


Thanks for sharing, this is awesome


No Elm there?


230+ sets of documentation already work. You can vote for your favorite language here: https://trello.com/b/6BmTulfx/devdocs-documentation


thanks for this one!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: