Google Reader Update Breaks Google Reader Print Button Script

Copyright © 2008 Stephen Cronin. Visit the original article at http://www.scratch99.com/2008/12/google-reader-update-breaks-google-reader-print-button-script/.
As you may know from my Google Reader Print Button hack, I’m a big fan of the Google Reader Print Button greasemonkey script. I use it quite often to print feed entries to a format I can use on my PDA (which has no connectivity).
Now, an update to Google Reader has broken the script. I reported this at the script’s home page, but rather than waiting for the fix, I went ahead and fixed it myself. I need that Print Button! Here’s my fix.
Please note, this is an unofficial fix. You should check the script’s home page to see if an official fix has been released and only use the following fix if it hasn’t. I’m sure the script’s author Julien Gilles will provide an official fix in the near future. I’ll put a note at the top of this post when I know it’s been fixed.
Changes To Make The Script Work With Google Reader Update
In order to fix the script, I needed to fix a couple of items. First, I changed the name of several classes referenced, as follows:

Line 26: I changed chrome-stream-title to stream-folder-chooser.
Line 39: I changed chrome-footer-container to viewer-footer.

I also changed the printButton.innerHTML assignments on line 47 and 54 to use the new HTML that the Updated Google Reader uses.
For the Print button on line 47, I changed:

printButton.innerHTML ='<tbody><tr><td class="btl"></td><td class="btr"></td></tr><tr><td class="bbl"></td><td class="bbr"><div class="button-body-container"><span class="button-body unselectable">Print</span></div></td></tr></tbody>';

to

printButton.innerHTML ='<div role="wairole:button" tabindex="0" class="goog-button goog-button-base unselectable goog-inline-block goog-button-float-left goog-button-tight" […]

Read the rest of this great post here

No Comments

Leave a reply