Skip to content

Instantly share code, notes, and snippets.

@drench
Created January 25, 2010 18:41
Show Gist options
  • Save drench/286103 to your computer and use it in GitHub Desktop.
Save drench/286103 to your computer and use it in GitHub Desktop.
Wrap text/plain bookmarklet
<a href="javascript:(function(){%28function%28%29{var%20d%3ddocument%3bvar%20t%3dd.body.textContent.replace%28/%26/g%2c%27%26amp%3b%27%29.replace%28/%3c/g%2c%27%26lt%3b%27%29.replace%28/%3e/g%2c%27%26gt%3b%27%29.replace%28/\n/g%2c%27%3cbr/%3e\n%27%29%3bd.open%28%29%3bd.writeln%28%27%3ctt%3e%27%2bt%2b%27%3c/tt%3e%27%29%3bd.close%28%29%3b}%29%28%29%3b})()">text/plain word wrap</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment