Skip to content

Instantly share code, notes, and snippets.

@HyShai
Last active August 29, 2015 13:56
Show Gist options
  • Save HyShai/8807590 to your computer and use it in GitHub Desktop.
Save HyShai/8807590 to your computer and use it in GitHub Desktop.
protocol replacer bookmarklet that works in chrome (iOS) - useful for trying new openURL schemes
//have to wait for the keyboard for the url bar to leave before triggering the keyboard for the prompt, hence the timeout
javascript:setTimeout(function(){window.location=document.location.href.replace(document.location.protocol,prompt("Enter New Protocol: ("+document.location.protocol+")")+":")},1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment