7

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

8
  • 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, 2012 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, 2012 at 15:35
  • @Arjan will do tomorrow.. I'll keep the gravatar out though.. Apr 9, 2012 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! Apr 9, 2012 at 16:23
  • @Arjan Here ya go github.com/Manishearth/Manish-Codes/blob/… Should it add the userid as well? (That may look ugly) Apr 10, 2012 at 13:57
  • 1
    @Lix see above.. Apr 10, 2012 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. Jun 10, 2016 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 Sep 17, 2018 at 17:07

2 Answers 2

2

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.
1

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.

0

You must log in to answer this question.

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