Skip to content

Instantly share code, notes, and snippets.

@victorpolko
Created February 2, 2021 17:20
Show Gist options
  • Save victorpolko/463a2188237341d4b5139d492ad0e5f3 to your computer and use it in GitHub Desktop.
Save victorpolko/463a2188237341d4b5139d492ad0e5f3 to your computer and use it in GitHub Desktop.
Quick notes in browser using contenteditable
data:text/html, <html contenteditable><head><title>::Quick Notes::</title><script>window.onbeforeunload=function(e){return e.returnValue=true};</script></head><body><ol><li></li></ol></body></html>
@victorpolko
Copy link
Author

It's a convenient way to add a quick todo or a note in the browser, which I use almost all of the time.

I added a bookmark to Chrome with that gist's content as the url, and when I need to write something down, I just start typing content in a new tab.

contenteditable can also be used to paste parts of websites, and it takes the formatting and images with it, so it's a cool way to compose something from many places.

E.g. when you need several restaurants descriptions and maps and you don't want to mess with Word or OpenOffice.

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