Skip to content

Instantly share code, notes, and snippets.

@johnss
Created September 20, 2017 18:00
Show Gist options
  • Save johnss/d5bae1a965f06b521a85a33d517d973a to your computer and use it in GitHub Desktop.
Save johnss/d5bae1a965f06b521a85a33d517d973a to your computer and use it in GitHub Desktop.

Revisions

  1. johnss created this gist Sep 20, 2017.
    1 change: 1 addition & 0 deletions source.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    var n=document.firstChild;while(n && n.nodeType!=Node.ELEMENT_NODE) n=n.nextSibling;document.write('<pre>' + n.outerHTML.replace(/&/g, '&amp;').replace(/</g, '<font color=\'#aa6600\'>&lt;').replace(/>/g, '&gt;</font>'));