Last Updated: December 24, 2019
·
2.919K
· ivanca

Browser notepad + Save

data:text/html,<html><script>window.onload=function(){var a=document.body;a.innerText=localStorage.mydoc;a.addEventListener("keydown",function(b){b.ctrlKey&&83==b.which&&(localStorage.mydoc=a.innerHTML,b.preventDefault())},!1)};</script><body contenteditable></body></html>

With this you can save using the URL!

Just press Ctrl+S and use the browser history to access it! That means it also haves a pseudo-version-control-system included! For easy access the first line in the text becomes the title. Happy hacking!

Fork of: https://coderwall.com/p/lhsrcq

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside