Skip to content

Instantly share code, notes, and snippets.

@smj10j
Created February 22, 2015 10:11
Show Gist options
  • Select an option

  • Save smj10j/bad6edf9a6dcd19d672a to your computer and use it in GitHub Desktop.

Select an option

Save smj10j/bad6edf9a6dcd19d672a to your computer and use it in GitHub Desktop.
Register a Protocol Handler in Chrome
document.getElementsByTagName('body')[0].innerHTML+= ('<a href=\'javascript:navigator.registerProtocolHandler("web+alfred","%s.alfredworkflow","Alfred 2");\'>a link</a>')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment