Live data from Hacker News

Show HN: ~200 byte in-browser, no JS, private notepad

jjjjjjjjjjjjjjjjjjjj.github.io

31–40 of 75 posts

Re: Show HN: ~200 byte in-browser, no JS, private notepad

#31
post #30

Earlier quoted context omitted.

You may not be able to to them, but you can certainly issue redirects to them, and to a URL that issues such a redirect. You can also to a URL that issues a redirect to a location given by a GET parameter, eliminating the need to stand up a site for every different idea you come up with.

That used to be possible [1], but it looks like redirection to a data url is blocked on current versions of Chrome and Firefox. [1] http://indirection.modusponens.org/data:text/html,Hello,%20w... !

In chrome, what's blocked is page-initiated top-level navigations to data URLs (because of spoofing concerns). You can load them in iframes, and you can still do a browser-initiated navigation to them (i.e., type them into the omnibox). They can be used freely as subresources.

Http Redirection to data: urls has been blocked in chrome for at least half a decade. There's really no reason to allow that, a server can just as easily return the data as the response body.

Re: Show HN: ~200 byte in-browser, no JS, private notepad

#32

You can always type `data:text/html, ` on your browser :)

Wow, I did not know that we could create tiny "serverless" pages like that. I created this self referencing URL: `data:text/html, SO META This link's url is p = document.createElement("p");p.innerText = window.location.href;document.body.appendChild(p) ` The sad part is that 's are actually blocked from using data:text/html URLs. So we can still create tiny games and apps that can be copy/pasted in the address bar, b…

how about using document.write to go to the new self contained page

...'">other game

Re: Show HN: ~200 byte in-browser, no JS, private notepad

#33

I wanted a place where I could write down my thoughts without them being stored in the cloud or connected to an account (notes, onenote, evernote, docs, paper, gist, etc). I don't really like terminal text editors, notepad, or IDEs for writing, so I made this very simple notepad. It's a html tag with the contenteditable attribute making it editable, and some . To save a note just store it on disk (cmd/ctrl+s). To add…

Really cool idea! In what browsers is dragging images to contenteditable supposed to be supported? I'm on Chrome 66 and it just opens the image in the current tab.

In Safari, Drag & Drop of images doesn't work but Copy/Paste does

Re: Show HN: ~200 byte in-browser, no JS, private notepad

#34
post #20

I wanted a place where I could write down my thoughts without them being stored in the cloud or connected to an account (notes, onenote, evernote, docs, paper, gist, etc). I don't really like terminal text editors, notepad, or IDEs for writing, so I made this very simple notepad. It's a html tag with the contenteditable attribute making it editable, and some . To save a note just store it on disk (cmd/ctrl+s). To add…

> To save a note just store it on disk (cmd/ctrl+s). What's this supposed to do? On Firefox/Win it just saves the initial blank page as you'd expect, which is not very useful. Removing the `contenteditable` attribute before saving makes no difference. I'm not aware that there is a simple portable way to save dynamically-modified webpages; projects like TiddlyWiki have been banging their collective heads against this…

When you save it as a webarchive in Safari it includes the user-generated content, including embedded images.

Re: Show HN: ~200 byte in-browser, no JS, private notepad

#35
post #20

I wanted a place where I could write down my thoughts without them being stored in the cloud or connected to an account (notes, onenote, evernote, docs, paper, gist, etc). I don't really like terminal text editors, notepad, or IDEs for writing, so I made this very simple notepad. It's a html tag with the contenteditable attribute making it editable, and some . To save a note just store it on disk (cmd/ctrl+s). To add…

> To save a note just store it on disk (cmd/ctrl+s). What's this supposed to do? On Firefox/Win it just saves the initial blank page as you'd expect, which is not very useful. Removing the `contenteditable` attribute before saving makes no difference. I'm not aware that there is a simple portable way to save dynamically-modified webpages; projects like TiddlyWiki have been banging their collective heads against this…

In FF, you have to tell it to save as 'Webpage - complete'. Other browsers have similar options.

Re: Show HN: ~200 byte in-browser, no JS, private notepad

#36

Litewrite[1] is a great notepad that does save notes to browser localstorage, and has a syncing feature (you can sync through Dropbox, Google Drive or any RemoteStorage provider) [1] https://litewrite.net/

This is nice! And it supports backing up data in self hosted RemoteStorage.

Re: Show HN: ~200 byte in-browser, no JS, private notepad

#39
post #17
post #16

Earlier quoted context omitted.

I'm assuming he's going for the minimalist notepad because of how bare bones the contenteditable notepad is.

the content-editable version lacks the most basic of features, such as search and replace. I don't think you can compare them at all.

So... someone doesn't like Notepad because it has search-and-replace, and preferred something kind of like notepad but without all those pesky features?
Post reply on HN