I created this self referencing URL:
`data:text/html, <html><head><title>SO META</title></head><body><h1>This link's url is</h1><script>p = document.createElement("p");p.innerText = window.location.href;document.body.appendChild(p)</script></body></html>`
The sad part is that <a href>'s are actually blocked from using data:text/html URLs. So we can still create tiny games and apps that can be copy/pasted in the address bar, but we can't link to them.
If we can put the data in an image file a user could drag a cart into their address bar to load up a game. So we can pass around carts like images.
You can also <a> to a URL that issues a redirect to a location given by a GET parameter, eliminating the need to stand up a site for every different idea you come up with.
[1] http://indirection.modusponens.org/data:text/html,Hello,%20w...!
Http Redirection to data: urls has been blocked in chrome for at least half a decade. There's really no reason to allow that, a server can just as easily return the data as the response body.
<a onclick="document.write('<html>...</html>'">other game<\a>
Anyone know what I am talking about?