Skip to content

Instantly share code, notes, and snippets.

@Xyborg
Created May 11, 2020 04: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 Xyborg/43f62997c3527cf16a135173d2505cbc to your computer and use it in GitHub Desktop.
Save Xyborg/43f62997c3527cf16a135173d2505cbc to your computer and use it in GitHub Desktop.
A simple JS to view the DOM for the current window.
javascript:var win = window.open("", "Dom Viewer by @Xyborg", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=1000,height=700,top=50,left=20");win.document.body.appendChild(document.createTextNode(document.getElementsByTagName('html')[0].innerHTML));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment