Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Personally, I bookmarked this piece of code, so that everytime I open a new tab and want to take notes, I just open one and press my bookmark link:

    data:text/html, <body contenteditable style="font: 2rem/1.5 monospace;max-width:60rem;margin:0 auto;padding:4rem;">
Alternatively, you could also paste this in your browser URL bar and press enter.

I got this code from some GitHub gist, but it has served me well for many years.



This works great! I can combine it with Firefox' often-forgotten "Keyword" feature of bookmarks so that typing note in the URL bar automatically opens this. And to save a note I just press CTRL+S

Microscopic tweak: white font on black background

    data:text/html, <body contenteditable style="font: 2rem/1.5 monospace;max-width:60rem;margin:0 auto;padding:4rem;color:white;background-color:black;">
EDIT: Another tweak: give the body focus automatically

    data:text/html, <html><body id='.' contenteditable style="font: 2rem/1.5 monospace;max-width:60rem;margin:0 auto;padding:4rem;color:white;background-color:black;"></body><script type="text/javascript">var div = document.getElementById('.');setTimeout(function() {div.focus();}, 0);</script></html>




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: