Skip to content

Instantly share code, notes, and snippets.

@Le0X8
Last active June 15, 2023 13:48
Show Gist options
  • Save Le0X8/0c21ce2e42e381a6fb0b8ea1f269156a to your computer and use it in GitHub Desktop.
Save Le0X8/0c21ce2e42e381a6fb0b8ea1f269156a to your computer and use it in GitHub Desktop.
This one-liner shows you an URL in which you can view the source of the page you're visiting
prompt('Copy the the text below and paste it into the adress bar', URL.createObjectURL(new Blob([new TextEncoder().encode(document.documentElement.outerHTML).buffer], { type: 'text/plain' })));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment