News for hackers. Stuff that matters.
Re:Fastest and Minimalist Note Taking App by kevindamm on Monday March 31, 2025 @03:17PM (#43538678)
If you're looking to save yourself from accidental deletion, I tested the following, it adds a confirm dialog when closing the tab.

data:text/html,<div contenteditable style="height:100%"><script>addEventListener("beforeunload", (e) => {e.returnValue = "?";})</script>

Re:Fastest and Minimalist Note Taking App by crazygringo on Monday March 31, 2025 @08:24PM (#43541531)
I love that! It never occurred to me. So simple. Thank you!