<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on Unsafe Google Suggestion | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/12533</link>
    <description>Recent comments on userscript: Unsafe Google Suggestion</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Script Update Checker, replied by Richard Davies</title>
      <description>&lt;p&gt;You should take a look at &quot;Script Update Checker&quot; &lt;a href=&quot;http://userscripts.org/scripts/show/20145&quot;&gt;http://userscripts.org/scripts/show/20145&lt;/a&gt;. It's a few lines of code that you can copy and paste into your GreaseMonkey script that enable it to automatically check userscripts.org for updated versions of the script.&lt;/p&gt;

&lt;p&gt;It only takes a minute or two to add it to your script, and then users will automatically be notified whenever you update this script. Please take a look because I think this is a nice feature this script could take advantage of.&lt;/p&gt;</description>
      <pubDate>Wed, 14 Jan 2009 20:00:03 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:20400:89950</guid>
      <author>Richard Davies</author>
      <link>http://userscripts.org/posts/89950</link>
    </item>
    <item>
      <title>Not working on &amp;quot;Firefox&amp;quot; search page, replied by Richard Davies</title>
      <description>&lt;p&gt;I've fixed the script so that it's now working on the Firefox search page. In addition, I've also modified it so that it doesn't require use of the &quot;unsafeWindow&quot; object:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;
(function() {
	function suggestScript() {
		var f = document.evaluate(&quot;//form[@action='/search']&quot;, document, null, XPathResult.   FIRST_ORDERED_NODE_TYPE, null).singleNodeValue ||
			document.evaluate(&quot;//form[@action='http://images.google.com/images']&quot;, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue ||
			//document.evaluate(&quot;//form[@action='/news']&quot;, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue ||
			document.evaluate(&quot;//form[@action='/books']&quot;, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue ||
			//document.evaluate(&quot;//form[@action='/codesearch']&quot;, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue ||
			document.evaluate(&quot;//form[@action='/patents']&quot;, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue ||
			//document.evaluate(&quot;//form[@action='/products']&quot;, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue ||
			//document.evaluate(&quot;//form[@action='/custom']&quot;, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue ||
			document.evaluate(&quot;//form[@action='/unclesam']&quot;, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;// ||
			//document.evaluate(&quot;//form[@action='/linux']&quot;, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue ||
			//document.evaluate(&quot;//form[@action='/bsd']&quot;, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue ||		
			//document.evaluate(&quot;//form[@action='/microsoft']&quot;, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
		if (!f) return; 
		if (!f.q || !f.btnG) return;
		if(!google) google={};
	    var s = document.createElement('script');
		s.setAttribute(&quot;src&quot;, &quot;http://www.google.com/extern_js/f/CgJlbhICdXMrMAo4DSwrMA44AywrMBg4Ayw/AQ-hC7_2R8g.js&quot;);
		var ev = new Object();
	    ev.handleEvent = function (e) {
			if(google.ac){
				window.setTimeout('window.google.ac.i(f,f.q,&quot;&quot;,false,&quot;close&quot;,true)',100);
				f.q.setAttribute(&quot;autocomplete&quot;, &quot;off&quot;);
				f.q.blur();
				f.q.focus();
			}
	    };
	    s.addEventListener('load', ev, true);
		s.removeEventListener('load', ev, false);
		document.getElementsByTagName('head')[0].appendChild(s);
	};

	document.body.appendChild(document.createElement(&quot;script&quot;)).innerHTML=&quot;(&quot; + suggestScript + &quot;)()&quot;;

})();
&lt;/pre&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 13 Jan 2009 23:25:19 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:20346:89754</guid>
      <author>Richard Davies</author>
      <link>http://userscripts.org/posts/89754</link>
    </item>
    <item>
      <title>Not working on &amp;quot;Firefox&amp;quot; search page, replied by Richard Davies</title>
      <description>&lt;p&gt;This script isn't working for me on the Firefox search page:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.google.com/firefox?client=firefox-a&amp;amp;rls=org.mozilla:en-US:official&quot;&gt;http://www.google.com/firefox?client=firefox-a&amp;amp;...&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 13 Jan 2009 19:02:13 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:20346:89715</guid>
      <author>Richard Davies</author>
      <link>http://userscripts.org/posts/89715</link>
    </item>
    <item>
      <title>Archived Comments, replied by Henrique Abreu</title>
      <description>&lt;p&gt;It didn't worked for me either :(
&lt;br /&gt;I'm using Firefox 3.0.1 on Debian Lenny and Greasemonkey 0.8.20080609.0&lt;/p&gt;</description>
      <pubDate>Sun, 14 Sep 2008 14:20:11 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10389:22406</guid>
      <author>Henrique Abreu</author>
      <link>http://userscripts.org/posts/22406</link>
    </item>
    <item>
      <title>Archived Comments, replied by dtech</title>
      <description>&lt;p&gt;It works for me on google.nl
&lt;br /&gt;Unfortunately it does not work on iGoogle (google.nl/ig). I do not get the firefox autocomplete suggestions like normal but neither get google suggest results.
&lt;br /&gt;I'll try to figure out why it doesn't work perfectly.&lt;/p&gt;</description>
      <pubDate>Sat, 07 Jun 2008 10:36:26 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10389:22407</guid>
      <author>dtech</author>
      <link>http://userscripts.org/posts/22407</link>
    </item>
    <item>
      <title>Archived Comments, replied by searchforsunrise</title>
      <description>&lt;p&gt;hi there, great script!&lt;/p&gt;

&lt;p&gt;unfortunately, it seems to have stopped working for me recently, any idea of it's just me or if it's due to changes on google's end?&lt;/p&gt;

&lt;p&gt;anyhow, it's one of my &quot;must-have&quot; scripts, thanks again for your work :)&lt;/p&gt;</description>
      <pubDate>Fri, 11 Jan 2008 18:29:10 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10389:22408</guid>
      <author>searchforsunrise</author>
      <link>http://userscripts.org/posts/22408</link>
    </item>
    <item>
      <title>Archived Comments, replied by m4n_in_bl4ck</title>
      <description>&lt;p&gt;amazing, thanks a lot&lt;/p&gt;</description>
      <pubDate>Tue, 25 Dec 2007 13:26:18 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10389:22409</guid>
      <author>m4n_in_bl4ck</author>
      <link>http://userscripts.org/posts/22409</link>
    </item>
    <item>
      <title>Archived Comments, replied by vasyabelkin</title>
      <description>&lt;p&gt;Mikado, fixed in 0.6. Thank you very much&lt;/p&gt;</description>
      <pubDate>Sun, 18 Nov 2007 13:33:57 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10389:22410</guid>
      <author>vasyabelkin</author>
      <link>http://userscripts.org/posts/22410</link>
    </item>
    <item>
      <title>Archived Comments, replied by Mikado</title>
      <description>&lt;p&gt;Sorry, I forgot, I removed repeating unsafeWindow and added these lines:
&lt;br /&gt;&lt;code&gt;if (f) f = f.wrappedJSObject;
&lt;br /&gt;else return;&lt;/code&gt;
&lt;br /&gt;and also removed function stuff (can't get why do you need it if call it only once).&lt;/p&gt;</description>
      <pubDate>Sun, 18 Nov 2007 03:54:53 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10389:22411</guid>
      <author>Mikado</author>
      <link>http://userscripts.org/posts/22411</link>
    </item>
    <item>
      <title>Archived Comments, replied by vasyabelkin</title>
      <description>&lt;p&gt;Thank you very much, Aaron. The code is merged into 0.5. If somebody will propose some better way, as you asked, I will change it.&lt;/p&gt;</description>
      <pubDate>Wed, 14 Nov 2007 07:30:52 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10389:22412</guid>
      <author>vasyabelkin</author>
      <link>http://userscripts.org/posts/22412</link>
    </item>
    <item>
      <title>Archived Comments, replied by Aaron McBride</title>
      <description>&lt;p&gt;I was having a problem on the /ig page.  The query field starts out with focus, so for some reason the code to disable autocomplete doesn't work right away (until you blur and refocus).&lt;/p&gt;

&lt;p&gt;To fix it, I added:
&lt;br /&gt;    f.q.blur();
&lt;br /&gt;    f.q.focus();
&lt;br /&gt;after:
&lt;br /&gt;    f.q.setAttribute(&quot;autocomplete&quot;, &quot;off&quot;);&lt;/p&gt;

&lt;p&gt;Anyone know a better way?&lt;/p&gt;</description>
      <pubDate>Wed, 14 Nov 2007 07:09:12 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10389:22413</guid>
      <author>Aaron McBride</author>
      <link>http://userscripts.org/posts/22413</link>
    </item>
    <item>
      <title>Archived Comments, replied by vasyabelkin</title>
      <description>&lt;p&gt;Mikado, I'm sorry but it won't work without &quot;unsafeWindow&quot;. You may check this yourself. Or, perhaps, there are some restrictions on my PC&lt;/p&gt;</description>
      <pubDate>Thu, 01 Nov 2007 09:50:09 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10389:22414</guid>
      <author>vasyabelkin</author>
      <link>http://userscripts.org/posts/22414</link>
    </item>
    <item>
      <title>Archived Comments, replied by Mikado</title>
      <description>&lt;p&gt;You can remove &lt;code&gt;unsafeWindow.&lt;/code&gt; before &lt;code&gt;document.evaluate&lt;/code&gt;.&lt;/p&gt;</description>
      <pubDate>Sat, 13 Oct 2007 01:33:57 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10389:22415</guid>
      <author>Mikado</author>
      <link>http://userscripts.org/posts/22415</link>
    </item>
    <item>
      <title>Archived Comments, replied by Tanel</title>
      <description>&lt;p&gt;L33t - W00t - etc...
&lt;br /&gt;Very useful!&lt;/p&gt;</description>
      <pubDate>Mon, 01 Oct 2007 11:00:46 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10389:22416</guid>
      <author>Tanel</author>
      <link>http://userscripts.org/posts/22416</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:06:00 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10389:22405</guid>
      <author>Jesse Andrews</author>
      <link>http://userscripts.org/posts/22405</link>
    </item>
  </channel>
</rss>
