TheRegister Multi-page Printer Friendly Articles

By David Snyder Last update Dec 21, 2008 — Installed 180 times.


Script Summary: Redirect to the print friendly version of the current TheRegister article if it's a multi-page article. Based off of Dean Wilson's 'TheRegister Printer Friendly Articles'.

While I love ElReg, having to click through pages for multi-page articles is an annoyance. So, I adapted Dean Wilson's otherwise excellent script, TheRegister Printer Friendly Articles, so that it only shows the printer-friendly version on multi-page articles. Enjoy.

- 1.10 (21 Dec 2008): Noticed that the ElReg hardware changed its layout and didn't match any of the conditions in the script. Therefore, I modified the script to search on whether the keywords to look for are IDs for a div or are the class name for a div. If either condition is true, forward to the print page.
- 1.9 (31 Oct 2008): Updated the script to fix the new page-nav DIV ID used by some ElReg multi-page articles.
- 1.8 (15 Sep 2008): Updated the script to use the XPath div finder and changed the logic to go to the printer page if the count of divs w/ the class PageNum is greater than 0.
- 1.7 (15 Sep 2008): Modified the site and print.html checks to be done in one if instead of the original nested ifs.
- 1.6 (15 Sep 2008): Add an Id string to the script.
- 1.5 (15 Sep 2008): Initial script posting.