Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@AngeloStavrow AngeloStavrow commented Jan 8, 2019

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