Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.



enter image description here

Original: enter image description here

Printed: enter image description here

share|improve this question
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… Should it add the userid as well? (That may look ugly) – Manishearth Apr 10 '12 at 13:57
@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("‌​ature 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 at 9:56



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


  • Add confirmation.
share|improve this answer

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.

share|improve this answer
{{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 .