Saving your YC application

6 points by spb ↗ HN
If, like me, you want to save the text of your Y Combinator application at the last minute, but CTRL-A + CTRL-C doesn't copy the text of input / textarea fields, here's a quick-n-dirty "one-liner" for the console that will convert all the input fields to `<pre>` elements:

    [].slice.call(document.querySelectorAll('input, textarea'),0).forEach(function(elem){var p = document.createElement('pre'); p.textContent=elem.value; elem.parentElement.replaceChild(p,elem)})

4 comments

[ 2.8 ms ] story [ 18.2 ms ] thread
Made myself something way more complex to scrape the page...this is nice.
Doesn't just pressing Cmd+S / Ctrls+S in browser do the job? ;)
Ha! I used to copy the page source and keep it. Thanks, man.
You could just print the page as pdf?