Last Updated: February 25, 2016
·
1.813K
· zaus

One line browser notepad, continued

As popularized by One line browser notepad, here's another bookmarklet with localStorage -- unfortunately Chrome (and probably everything else) thinks js access is a security risk, so it only works as an actual HTML page.

data:text/html, <title>Text Editor</title>
<link rel="shortcut icon" href="http://g.etfv.co/http://www.sublimetext.com"/>
<body contenteditable style="font-family:monaco;font-size:2rem;line-height:1.4;max-width:60rem;margin:0 auto;padding:0.5rem;">
<script>(function(b,l,k){b.innerHTML=l.getItem(k);b.addEventListener("keypress",function(e){l.setItem(k,b.innerHTML)},false)})(document.body,localStorage,"bkmlt.ntpd")</script>
  • favicon
  • "nicer font" (ymmv)
  • automatic persistent

Demo (actual page)

1 Response
Add your response

Nice! Now you've motivated me to improve this more if possible.

over 1 year ago ·