Follow

Copy and paste into your (non-mobile) browser URL bar for an ad-hoc dark-mode text editor:

data:text/html;charset=UTF-8, <html contenteditable><style>body{font:600 1rem monospace;color:Gainsboro;background:DarkSlateGray}</style>

Made some improvements to this. Now there's a version to save the text you typed as a text file

github.com/cypnk/Browser-Edito

Show thread

I just realized I can turn this into a bookmarklet since it's so short (especially compared to a full WYSIWYG)

Show thread

@Shufei All about that magic ;)

Actually, I'm wondering if it's possible to add an event listener so that Ctrl + S will automatically download the typed text as a file

@cypnk works on Firefox for Android too, though I had to boost font size to 2.5

@er1n I tested this on FF 72.0.2 on linux and Windows so I can't vouch for older versions

@er1n lol! Perils of versions. BTW, I'm not entirely comfortable with some of the newest changes in Firefox with each version

I'd rather not use a different browser, but I don't like where Mozilla is heading lately

@andreas Ooh, that's even nicely styled too. I don't know why, but these kinds of little hacks make them so much fun to use

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!