Skip to content

Instantly share code, notes, and snippets.

@lewisje
Last active November 26, 2015 22:23
Show Gist options
  • Save lewisje/f3e6ad13884e9591474d to your computer and use it in GitHub Desktop.
Save lewisje/f3e6ad13884e9591474d to your computer and use it in GitHub Desktop.
Crude "View Current Source" bookmarklet (public domain): https://developer.mozilla.org/en-US/docs/Web/HTML/Element/plaintext
javascript:document.documentElement.innerHTML='<plaintext>'+document.documentElement.innerHTML;
@lewisje
Copy link
Author

lewisje commented Nov 26, 2015

It doesn't dump the html tags themselves, or anything outside them, but otherwise it works well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment