e_anfw
Last Updated: February 25, 2016
·
1.394K
· zaus
D940dd93751cea6229c4b9b2098b7f39

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)

Say Thanks
Respond

1 Response
Add your response

3613
C5d8a67410398610516a9424e5387957

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

over 1 year ago ·