Skip to content

Instantly share code, notes, and snippets.

@mobilemind
Created July 18, 2012 18:25
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 mobilemind/3137891 to your computer and use it in GitHub Desktop.
Save mobilemind/3137891 to your computer and use it in GitHub Desktop.
View Source Bookmarklet from Mark Damon Hughes <http://kuoi.com/~kamikaze/read.php?id=276>
javascript:{document.documentElement.innerHTML%20='<head><title>View%20Source<\/title><\/head>\n'+'<body><p>Source%20of%20<a%20href=\''+location.href+'\'>'+location.href+'<\/a><\/p>\n'+'<pre>\n&lt;'+document.documentElement.nodeName+'&gt;\n'+(document.documentElement.innerHTML).replace(/\&/g,%20'&amp;').replace(/</g,%20'&lt;').replace(/>/g,%20'&gt;')+'\n&lt;/'+document.documentElement.nodeName+'&gt;\n<\/pre><\/body>\n';}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment