News for hackers. Stuff that matters.

One line browser notepad

Open a new tab and type in the url tab:

data:text/html, <html contenteditable>

Browser notepad :)

( 5 comments | 16 points | on HN )
Re:One line browser notepad by jaredsohn on Thursday April 10, 2014 @05:26PM (#7569846)
A neat aspect of this is that you can also use it to edit webpages based on the current structure in a WYSIWYG fashion. Just go to some page (Hacker News, Facebook, etc.), press Command-A, Command-C, open this URL into a new tab, and press Command-V.
Re:One line browser notepad by MattBearman on Tuesday April 08, 2014 @05:04AM (#7552244)
I love this, I've been using this exact thing for a couple of years now - I think it appeared on HN before, I definitely can't take credit for it.

I have it bookmarked, and use it quite frequently, as it's the quickest way to write stuff down for temporary use.

Re:One line browser notepad by josh_nyc on Thursday April 10, 2014 @04:15PM (#7569400)
I love this also.

Any way to prevent TAB from unfocusing the textarea? Perhaps a javascript in the URL?

Re:One line browser notepad by nareshv on Thursday April 10, 2014 @07:09AM (#7565202)
nice !

any way to save it offline ;-?

Re:One line browser notepad by krishna2 on Saturday April 12, 2014 @02:39AM (#7577179)
Just click the "save" button in your browser - the file gets saved as a .html.