var win = window.open();
win.document.write(
document.body.innerText.replace(/\n/g,"<br>"));
win.document.body.setAttribute("style","margin: 1in; font-family: monospace; color: rgb(255, 255, 255); border-color: rgb(13, 10, 10);");