Skip to content

Instantly share code, notes, and snippets.

@AngeloStavrow
Created December 20, 2018 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AngeloStavrow/856ee247c3a4044e05e0760d0386563b to your computer and use it in GitHub Desktop.
Save AngeloStavrow/856ee247c3a4044e05e0760d0386563b to your computer and use it in GitHub Desktop.
Browser bookmarklet to go from a Glitch app to its project page.
javascript:(function()%7Bconst hostname%3Dlocation.hostname.split(%27.%27)%5B0%5D%3Blocation.href%3D%60https%3A%2F%2Fglitch.com%2F~%24%7Bhostname%7D%2F%60%3B%7D)()%3B
@AngeloStavrow
Copy link
Author

The JavaScript is URL encoded; for easier readability, this is what we're running:

hostname=location.hostname.split('.')[0];location.href=`https://glitch.com/~${hostname}/`;})();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment