Answer to this meta question.

Adds a "print" link to individual posts. Does not do any stripping down of markup, the post is preserved as-is. The rest of the page is eaten by the jQuery monster.

Installation

Screenshots

enter image description here

Original: enter image description here

Printed: enter image description here

  • 1
    Given the CC-attribution-required, I'd like the author's name to be on the print too. Other than that: nice! – Arjan Apr 9 '12 at 15:31
  • Oh wow... yea... that works fantastically well! You might want to put a margin on the resulting div - it's hugging the left side of my screen ever so tightly... – Lix Apr 9 '12 at 15:35
  • @Arjan will do tomorrow.. I'll keep the gravatar out though.. – Manishearth Apr 9 '12 at 16:22
  • @Lix It won't make a diff when printing (if anything, it'll use more space), but it looks ugly, yeah. Thanks for the input! – Manishearth Apr 9 '12 at 16:23
  • @Arjan Here ya go github.com/Manishearth/Manish-Codes/blob/… Should it add the userid as well? (That may look ugly) – Manishearth Apr 10 '12 at 13:57
  • 1
    @Lix see above.. – Manishearth Apr 10 '12 at 13:59
  • For those who clicking on PRINT does NOT work: Click on GreaseMonkey -> Manage Userscripts Right Click on Print-A-Post and select "Edit". Delete the word ".owner" from this line: usernameprint=$(this).closest('div.question,div[id^=answer]').find("td.post-signature div.user-details a")[0].innerHTML; Now it should work again. Sorry i don't have enough reputation to put this to the right spot. – AreS AgathoS Jun 10 '16 at 9:56
  • I've updated the script to fix the script to work with the current version of the site (td is not used anymore for the post-signature) and also let the script run on https sites here – SpaceCowboy74 Sep 17 at 17:07

Changelog:

1.0.1:

  • Add tiny margin (15px) 'cos it looks ugly
  • Sign post with username (for the CC-attribution)

1.0.2:

  • Add confirmation.

Please oh please will you add a confirmation after clicking the print link. It is situated so close to the (much used) flag link :

enter image description here

enter image description here

Possibly a "return to original post" button (but that would show up on the printed version) so might not be a feasible option.

  • 1
    {{done}}................... – Manishearth Apr 10 '12 at 15:07
  • :)​​​​​​​​​​​​​​​​​​​​​​​​ – Lix Apr 10 '12 at 15:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .