Saving your YC application
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