Skip to content

Instantly share code, notes, and snippets.

@remy
Created March 4, 2010 10:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save remy/321605 to your computer and use it in GitHub Desktop.
Save remy/321605 to your computer and use it in GitHub Desktop.
Save this a bookmarklet on your iPhone or desktop browser to view the source to the current page
// bookmarklet to introspect the source of current page
javascript:(function(d,h){h=d.documentElement.innerHTML;d.open();d.write('<pre>'+('<!DOCTYPE html><html>'+h+'</html>').replace(/[<>]/g,function(m){return{'<':'&lt;','>':'&gt;'}[m]})+'</pre>')})(document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment