Skip to content

Instantly share code, notes, and snippets.

@atheiman
Last active October 13, 2023 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atheiman/862881d25c8dbb286c6222d3ef9e67ab to your computer and use it in GitHub Desktop.
Save atheiman/862881d25c8dbb286c6222d3ef9e67ab to your computer and use it in GitHub Desktop.
Notepad bookmarklet in browser editor
data:text/html, <html>
<head>
<title>Notepad</title>
<style>
body {
padding: 0;
margin: 0;
}
textarea {
font-family: monospace;
font-size: 14;
width: 100%;
height: 100%;
padding: 10;
border: none;
color: rgb(225, 225, 225);
background-color: rgb(35, 35, 35);
}
</style>
</head>
<body>
<textarea id="notepad" autofocus>Take a note...</textarea>
<script>
notepad = document.getElementById('notepad');
notepad.select()
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment