Skip to content

Instantly share code, notes, and snippets.

@gornostay25
Last active April 25, 2023 13:37
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 gornostay25/efd74796a87f5ac203d46009650488ab to your computer and use it in GitHub Desktop.
Save gornostay25/efd74796a87f5ac203d46009650488ab to your computer and use it in GitHub Desktop.
geting page source code in base64
var myWindow = window.open("", "_self", ""); myWindow.document.write(""+ btoa(unescape(encodeURIComponent(document.getElementsByTagName("HTML")[0].innerHTML)))+"");
//you can use this as bookmark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment