Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Copy into your browser console to output your YC application in a nice, aesthetically pleasing way
// Copy this into your YC application at https://apply.ycombinator.com/app/edit
// It will output (in the console) an HTML blob. Copy/paste that (minus the starting and ending quotes) into a file with extension .html and open in a browser.
// Voila, a copy of your YC app to save for your own use.
// You can copy/paste it from your browser into e.g. a Google Doc if you want to work on it.
// You should generally avoid copy/pasting code you didn't write into your browser console.
// This is normally not a terribly safe thing to do, but you should be able to read it and
// verify that it doesn't do anything untowards
text = "<html><body>"; $("input, textarea").each(function(index, input) {if (input.id){ label = $("label[for=" + input.id + "]"); if(label[0]){ text = text + "<p><b>" + label[0].innerHTML.trim() + "</b></p>\n"; }; text += "<p>" + $(input).val() + "</p><br/><br/>\n"; }}); text = text + "</body></html>"; text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment