Create an Instant Notepad in Any Web Browser Window #Mac


Instant Notepad from any web browser


Ever needed a quick place to paste some text or make a quick note while you’re doing web work? Using a neat trick, you can turn any web browser window or tab into an instant notepad that you can write in, copy and paste out of, and even adjust the font sizes within. There really isn’t much to this trick, and it works in just about web browser on just about every platform, whether you’re currently in OS X, Windows, Linux, or whatever else.


All you need to do is copy and paste this into the URL bar, the hit Return:


data:text/html, <html contenteditable>


After you hit return the page will clear and you’ll be able to start typing away. Paste in to your hearts delight, anything that is text based will go in, but images won’t. The little scratch pad is completely ephemeral however, so don’t expect to save anything from it directly and if you quit and relaunch the browser, your text will no longer be there (though the editable notepad will remain, just blank).


That little snippet can be bookmarked or saved as HTML, making it instantly accessible, and if you use Safari’s Reading List you can make it sync over to another Mac, iPad, or iPhone if you want to use this on the go. That means the little instant browser notepad also works in iOS in both Safari and Chrome, though admittedly it may be less useful on the mobile side of things, and because it won’t save data, don’t expect it to replace the actual Notes app in iOS and OS X as a super syncing clipboard anytime soon.


This handy trick was found by Macgasm, and they offer a nice little tip idea if you plan on using it often: text substitution. That allows you to type something like ‘mknotepad’ to expand out the entire code snippet, which is obviously much easier to remember, here’s how to quickly set that up:



  • Open System Preferences from the  Apple menu and go to “Languages & Text”

  • Under the “Text” tab, click the + icon to add a new text substitute

  • In the left “Replace” column, add your shortcut (like “mknotepad”) and under the “With” column, paste in the code snippet: data:text/html, <html contenteditable>


This should look something like this:


Quick notepad made easy with text replacement


Close out of System Preferences and type “mknotepad” anywhere for it to expand automatically into the snippet, it works in URL bars but if you plan on using it often in a browser it’s probably best to just create a bookmark. Some third party apps will need to be relaunched for text substitution to work properly, so keep that in mind if the replacement isn’t functioning as you’d expect.








source