Skip to content

Instantly share code, notes, and snippets.

@robflaherty
Created April 25, 2010 18:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robflaherty/378628 to your computer and use it in GitHub Desktop.
Save robflaherty/378628 to your computer and use it in GitHub Desktop.
javascript:(function(){var a=window.open("about:blank").document;a.write("<!DOCTYPE html><html><head><title>Source of "+location.href+'</title><meta name="viewport" content="width=device-width" /></head><body></body></html>');a.close();var b=a.body.appendChild(a.createElement("pre"));b.style.overflow="auto";b.style.whiteSpace="pre-wrap";b.appendChild(a.createTextNode(document.documentElement.innerHTML))})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment