46 points · by purple-leafy · 2y ago · 15 comments
And I wanted to make a Quine (code that prints a copy of its own source code ad infinitum)
So I made a bookmark-only notepad that saves a copy of its own executable and current state to a JavaScript executable bookmarklet.
As you type, a link on the page updates with the source code and the internal state. You can drag this link to the bookmarks bar to “save” your work. Works cross device if you have browser sync on.
No server involved!
I’ve built a few tools in the same spirit (“true” serverless), but never had it output its own code and state
Are you thinking of adding more features, or did you just want to prove you could build it?
I’d love to spin it into a sec hosting JavaScript REPL and snippet manager too
Good note to include. I've wrote an app like this where the install method requires executing code in the js console, and I always feel a little icky training users to run random code off the Internet. I include a similar warning.
I like your bookmarklet idea, I wonder if it will work with my app.
But be sure it’s safe before doing so with random internet code
Assuming the core editing code runs in mobile Mozilla, the sync aspect should work and I've used bookmarklets in mobile browsers before.