Last active
August 29, 2015 13:56
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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