<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on Google Search Results Sanitizer | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/21847</link>
    <description>Recent comments on userscript: Google Search Results Sanitizer</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>fix, replied by not really</title>
      <description>&lt;p&gt;fixup to handle starting at top-page, too (be sure to edit the included pages if only replacing the script; greasemonkey doesn't handle this well):&lt;/p&gt;

&lt;p&gt;// @include        &lt;a href=&quot;http://www.google.com/#&quot;&gt;http://www.google.com/#&lt;/a&gt;*
&lt;br /&gt;// @include        &lt;a href=&quot;http://www.google.com/&quot;&gt;http://www.google.com/&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 01 May 2009 06:36:56 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:25942:116605</guid>
      <author>not really</author>
      <link>http://userscripts.org/posts/116605</link>
    </item>
    <item>
      <title>fix, replied by not really</title>
      <description>&lt;p&gt;Fixed (rewrote) script.  Doing this during load doesn't work since it's populating via AJAX now.  Avoiding DOMSubtreeModified, since it's slow.  Can't remove the event handler from within the event handler--it works only half the time.  Can't replace rwt() on load (the function that does the rewriting), since it gets restored later.&lt;/p&gt;

&lt;p&gt;Capture clicks, so we get them before onmousedown does, and replace rwt() with a stub on each click.  Once again, copy-link-location works as it's supposed to.&lt;/p&gt;

&lt;p&gt;// ==UserScript==
&lt;br /&gt;// @name           google
&lt;br /&gt;// @namespace      google
&lt;br /&gt;// @include        &lt;a href=&quot;http://www.google.com/#&quot;&gt;http://www.google.com/#&lt;/a&gt;*
&lt;br /&gt;// ==/UserScript==&lt;/p&gt;

&lt;p&gt;window.addEventListener(&quot;mousedown&quot;, function(e) {
&lt;br /&gt;	unsafeWindow.rwt = function(obj, a, b, c, d) { return true; }
&lt;br /&gt;}, true);&lt;/p&gt;</description>
      <pubDate>Fri, 01 May 2009 05:58:24 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:25942:116600</guid>
      <author>not really</author>
      <link>http://userscripts.org/posts/116600</link>
    </item>
    <item>
      <title>Needs unescape(), replied by ping</title>
      <description>&lt;p&gt;Urls need to be unescaped or the link will break for urls like &lt;a href=&quot;http://somedomain.com/page.php?param=somevalue&quot;&gt;http://somedomain.com/page.php?param=somevalue&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;-------------- snip ------------------
&lt;br /&gt;var links = document.evaluate(&quot;//a[@class='l']&quot;, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);&lt;/p&gt;

&lt;p&gt;for (var i = 0; i &amp;lt; links.snapshotLength; i++) {
&lt;br /&gt;	links.snapshotItem(i).href = unescape(links.snapshotItem(i).href.replace(/.*&amp;amp;q=([^&amp;amp;]*)&amp;amp;.*/, &quot;$1&quot;));
&lt;br /&gt;}
&lt;br /&gt;-------------- snip ------------------&lt;/p&gt;</description>
      <pubDate>Wed, 25 Mar 2009 01:55:57 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:23761:105434</guid>
      <author>ping</author>
      <link>http://userscripts.org/posts/105434</link>
    </item>
    <item>
      <title>Archived Comments, replied by wei</title>
      <description>&lt;p&gt;Doesn't work... Once right clicked the link becomes the redirect.&lt;/p&gt;</description>
      <pubDate>Fri, 14 Nov 2008 02:45:22 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16980:73546</guid>
      <author>wei</author>
      <link>http://userscripts.org/posts/73546</link>
    </item>
    <item>
      <title>Archived Comments, replied by anonymous_user</title>
      <description>&lt;p&gt;Thanks for this script.&lt;/p&gt;</description>
      <pubDate>Sun, 09 Nov 2008 13:43:53 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16980:73547</guid>
      <author>anonymous_user</author>
      <link>http://userscripts.org/posts/73547</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jesse Andrews</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>Wed, 17 Nov 2004 01:05:45 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16980:73545</guid>
      <author>Jesse Andrews</author>
      <link>http://userscripts.org/posts/73545</link>
    </item>
  </channel>
</rss>
