Skip to content

Instantly share code, notes, and snippets.

@tail-call
Last active August 3, 2020 17:02
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 tail-call/9360d5f851d13abc7aabd08b08f4e44e to your computer and use it in GitHub Desktop.
Save tail-call/9360d5f851d13abc7aabd08b08f4e44e to your computer and use it in GitHub Desktop.
Quine URI
data:text/html,<script>d=document,d.querySelector('*').append(d.createTextNode(location))</script>
Shorter, non-HTML5:
data:text/html,<script>d=document,d.all[0].append(d.createTextNode(location))</script>
@tail-call
Copy link
Author

tail-call commented Aug 3, 2020

It's not a real quine, but I'm quine proud of myself

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