JSRef comes with a system wide service "Lookup in JSRef", that integrates into your system and lets you look up the API entry from within any application (e.g. your HTML editor or Safari). And the lookup is scriptable with AppleScript, so you can easily integrate the lookup into your custom workflow. An example AppleScript and Alfred extension for Alfred Power-Users is included.
You can copy syntax snippets or drag the entries into your text editor.
The content has been sourced from the MDN Wiki and was edited for JSRef. Though everything has been carefully checked, there is no guarantee about the correctness of the provided information. Each entry also contains generated links to caniuse, stackoverflow and a general web search to speed up your research.