<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on Printer Friendly Redirect | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/7986</link>
    <description>Recent comments on userscript: Printer Friendly Redirect</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Archived Comments, replied by znerp @ Mon, 14 May 2007 03:05:56 -0500</title>
      <description>&lt;p&gt;dingar, I am aware of problems such as this, but this script isn't the most sophisticated script in the world. My aim has been to ensure that it will redirect on most pages that have a print friendly version, not to ensure that it won't on pages selling printers etc. Without spending a very long time trying to find a way around this issue, it would be impossible to fix this particular problem. I guess this is just the problem with trying to write a script for every page on the internet.&lt;/p&gt;

&lt;p&gt;I guess all I can suggest is to hit the printer again if you end up on a page that you don't expect to be on, and manually look for a printer friendly link.&lt;/p&gt;</description>
      <pubDate>Mon, 14 May 2007 03:05:56 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60782</guid>
      <author>znerp</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by dingar @ Sun, 13 May 2007 23:10:32 -0500</title>
      <description>&lt;p&gt;Znerp, thank you for your reply. I love this script.
&lt;br /&gt;Look PCWorld please, it will jump to a page talk about priter. Such as
&lt;br /&gt;&lt;a href=&quot;http://www.pcworld.com/article/id,130869-page,1/article.html&quot;&gt;http://www.pcworld.com/article/id,130869-page,1...&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 13 May 2007 23:10:32 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60783</guid>
      <author>dingar</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by znerp @ Sun, 13 May 2007 07:54:48 -0500</title>
      <description>&lt;p&gt;UPDATE: now works for newscientist.com&lt;/p&gt;</description>
      <pubDate>Sun, 13 May 2007 07:54:48 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60784</guid>
      <author>znerp</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by znerp @ Thu, 10 May 2007 05:30:54 -0500</title>
      <description>&lt;p&gt;dingar, on the whole I've tried to avoid using javascript links, and very few sites seem to use them. On the whole when clicking them, I've found that it attempts to actually send the page to a printer and it would be annoying to have that pop up every time. I know it would be possible to block this from happening, but I'm happy to have the site load for most of the major news sites as it does.&lt;/p&gt;

&lt;p&gt;I looked at the site that you linked, and I've found the link you're referring to, but not being familiar with Chinese and due to the reasons listed above, I don't think I'll add it to the script. Feel free though to add as many extra lines as you like to your version though, half the fun of some scripts is customising them for your own use. Glad you like the script though!&lt;/p&gt;</description>
      <pubDate>Thu, 10 May 2007 05:30:54 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60785</guid>
      <author>znerp</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by dingar @ Wed, 09 May 2007 11:55:01 -0500</title>
      <description>&lt;p&gt;Look this page
&lt;br /&gt;&lt;a href=&quot;http://news.sina.com.cn/c/2007-03-07/170412455502.shtml&quot;&gt;http://news.sina.com.cn/c/2007-03-07/1704124555...&lt;/a&gt;
&lt;br /&gt;and I add
&lt;br /&gt;allLinks[i].href.match(&quot;javascript:LoadPrintJs()&quot;) ||&lt;/p&gt;</description>
      <pubDate>Wed, 09 May 2007 11:55:01 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60786</guid>
      <author>dingar</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by parallel lines @ Fri, 27 Apr 2007 10:48:44 -0500</title>
      <description>&lt;p&gt;i love this script! but i cant get it to go back to the page i came from, it keeps taking me back to the print friendly page. what gives?&lt;/p&gt;</description>
      <pubDate>Fri, 27 Apr 2007 10:48:44 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60787</guid>
      <author>parallel lines</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by znerp @ Sun, 22 Apr 2007 11:45:22 -0500</title>
      <description>&lt;p&gt;UPDATE: now works for boston.com&lt;/p&gt;</description>
      <pubDate>Sun, 22 Apr 2007 11:45:22 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60788</guid>
      <author>znerp</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by znerp @ Sun, 22 Apr 2007 08:51:16 -0500</title>
      <description>&lt;p&gt;UPDATE: now works for citypaper.net&lt;/p&gt;</description>
      <pubDate>Sun, 22 Apr 2007 08:51:16 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60789</guid>
      <author>znerp</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by znerp @ Sat, 21 Apr 2007 05:28:11 -0500</title>
      <description>&lt;p&gt;Thanks for the feedback Robert Litzke. I've grown the printer icon, and made it easily customisable from the top of the source file.&lt;/p&gt;</description>
      <pubDate>Sat, 21 Apr 2007 05:28:11 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60790</guid>
      <author>znerp</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by Robert Litzke @ Fri, 20 Apr 2007 16:54:18 -0500</title>
      <description>&lt;p&gt;Works well, but the icon could be a bit larger... it's like 10x10 pixels, hard to notice.&lt;/p&gt;</description>
      <pubDate>Fri, 20 Apr 2007 16:54:18 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60791</guid>
      <author>Robert Litzke</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by znerp @ Thu, 19 Apr 2007 12:12:58 -0500</title>
      <description>&lt;p&gt;UPDATE: now works for sun-sentinel.com&lt;/p&gt;</description>
      <pubDate>Thu, 19 Apr 2007 12:12:58 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60792</guid>
      <author>znerp</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by znerp @ Thu, 12 Apr 2007 06:49:35 -0500</title>
      <description>&lt;p&gt;UPDATE: now works for wral.com.&lt;/p&gt;</description>
      <pubDate>Thu, 12 Apr 2007 06:49:35 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60793</guid>
      <author>znerp</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by znerp @ Fri, 06 Apr 2007 10:32:28 -0500</title>
      <description>&lt;p&gt;UPDATE: now works for uk.news.yahoo.com&lt;/p&gt;</description>
      <pubDate>Fri, 06 Apr 2007 10:32:28 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60794</guid>
      <author>znerp</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by znerp @ Mon, 02 Apr 2007 10:35:53 -0500</title>
      <description>&lt;p&gt;UPDATE: now works for startribune.com.&lt;/p&gt;</description>
      <pubDate>Mon, 02 Apr 2007 10:35:53 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60795</guid>
      <author>znerp</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by znerp @ Sat, 31 Mar 2007 16:29:20 -0500</title>
      <description>&lt;p&gt;UPDATE: now works for news.com and nytimes.com. Thanks for the feedback, meno.&lt;/p&gt;</description>
      <pubDate>Sat, 31 Mar 2007 16:29:20 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60796</guid>
      <author>znerp</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by meno like-bugmenot @ Sat, 31 Mar 2007 13:00:38 -0500</title>
      <description>&lt;p&gt;hmmm...didn't seem to work on news.com or nytimes.com for me&lt;/p&gt;</description>
      <pubDate>Sat, 31 Mar 2007 13:00:38 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60797</guid>
      <author>meno like-bugmenot</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by Webb @ Mon, 19 Mar 2007 13:33:23 -0500</title>
      <description>&lt;p&gt;Thanks, znerp.&lt;/p&gt;

&lt;p&gt;I prefer the whitelist because I already have my favorite news and entertainment sites hacked with css and I seldom need to bother with printer friendly versions.&lt;/p&gt;</description>
      <pubDate>Mon, 19 Mar 2007 13:33:23 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60798</guid>
      <author>Webb</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by znerp @ Mon, 19 Mar 2007 12:11:22 -0500</title>
      <description>&lt;p&gt;As it is, you can cut a lot out of it if that's how you'd like to use it. I'd suggest keeping it as-is for a few days though, because the box only pops up once per host, so after a while you'll see it much much less. That said, you'd want to make the code simply...
&lt;br /&gt;&lt;pre&gt;
var allLinks = document.getElementsByTagName('a');
if (document.location.href.match(&quot;print&quot;) == null) {
  for (var i = 0; i &amp;lt; allLinks.length; i++) {
    if (allLinks[i].href.match(&quot;print.html&quot;) ||
        allLinks[i].href.match(&quot;print.shtml&quot;) ||
        allLinks[i].href.match(&quot;/print/&quot;) ||
        allLinks[i].href.match(&quot;/printer_friendly_story/&quot;) ||
        allLinks[i].href.match(&quot;&amp;amp;pagewanted=print&quot;) ||
        allLinks[i].href.match(&quot;/print?&quot;) ||
        allLinks[i].href.match(&quot;type=printable&quot;) ||
        allLinks[i].href.match(&quot;&amp;amp;printer=1&quot;)) {
      document.location = allLinks[i].href;
    }//if (allLin...
  }//for (var i ...
}//if (docume...
&lt;/pre&gt;
&lt;br /&gt;... to get what you asked for.&lt;/p&gt;</description>
      <pubDate>Mon, 19 Mar 2007 12:11:22 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60799</guid>
      <author>znerp</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by Webb @ Mon, 19 Mar 2007 11:38:40 -0500</title>
      <description>&lt;p&gt;I really like this but I hate the popup box.  Can you show me what to remove to get rid of it?&lt;/p&gt;

&lt;p&gt;I'd rather edit the includes from the universal http:/ /* to my own whitelist.&lt;/p&gt;</description>
      <pubDate>Mon, 19 Mar 2007 11:38:40 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60800</guid>
      <author>Webb</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by znerp @ Sun, 18 Mar 2007 17:18:10 -0500</title>
      <description>&lt;p&gt;sorry, Junk Blocker, I can't seem to roll that into this script well, and it didn't seem to work for me, so I've made simple redirect just for wired.com ... it seems to work in all the articles I tried; it's at &lt;a href=&quot;http://userscripts.org/scripts/show/7999&quot;&gt;http://userscripts.org/scripts/show/7999&lt;/a&gt;. I'm not familiar with wired.com at all, so forgive me if I've made a glaring oversight. Both scripts ought to work well together.&lt;/p&gt;</description>
      <pubDate>Sun, 18 Mar 2007 17:18:10 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60801</guid>
      <author>znerp</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by Junk Blocker @ Sun, 18 Mar 2007 16:25:27 -0500</title>
      <description>&lt;p&gt;For wired.com, the logic is something like this:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;
if (document.location.hostname.match(/wired\.com$/) &amp;amp;&amp;amp; document.location.href.match(/.\.html/) &amp;amp;&amp;amp; !document.location.href.match(/_pr\.html/)) {
  var newurl = document.location.href.replace(/\.html/, '_pr.html');
  document.location = newurl;
  return;
}
&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;if you wanna roll that up into the script.&lt;/p&gt;</description>
      <pubDate>Sun, 18 Mar 2007 16:25:27 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60802</guid>
      <author>Junk Blocker</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by znerp @ Sun, 18 Mar 2007 14:05:38 -0500</title>
      <description>&lt;p&gt;actually, yeah, I've done that. I'm an issue with it that I'm trying to work out before uploading it. The only way that I can see of doing this is by using GM_setValue, and these can be changed easily in about:config, but would take me more time than I want to spend at the moment to devise a more elaborate way of changing them. The issue I'm having is that it all works as expected, but if I reset the value in about:config, it throws a hissy fit and won't work. I think I'm doing something wrong in the GM_getValue, but I don't know what.&lt;/p&gt;</description>
      <pubDate>Sun, 18 Mar 2007 14:05:38 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60803</guid>
      <author>znerp</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by alien_scum @ Sun, 18 Mar 2007 11:42:46 -0500</title>
      <description>&lt;p&gt;Sweet script, makes reading the news on-line so much better, but that pop-up is starting to piss me off have you considered getting it to remember what you said for each domain?&lt;/p&gt;</description>
      <pubDate>Sun, 18 Mar 2007 11:42:46 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60804</guid>
      <author>alien_scum</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jesse Andrews @ Tue, 16 Nov 2004 19:05:24 -0600</title>
      <description>&lt;p&gt;The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)&lt;/p&gt;</description>
      <pubDate>Tue, 16 Nov 2004 19:05:24 -0600</pubDate>
      <guid isPermaLink="false">userscripts.org:14901:60781</guid>
      <author>Jesse Andrews</author>
      <link>http://userscripts.org/topics/14901</link>
    </item>
  </channel>
</rss>
