<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on Google Contacts Autocomplete | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/29604</link>
    <description>Recent comments on userscript: Google Contacts Autocomplete</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Archived Comments, replied by William Furr @ Thu, 06 Nov 2008 10:41:08 -0600</title>
      <description>&lt;p&gt;This is a great script, but it breaks &lt;a href=&quot;http://my.foxmarks.com/&quot;&gt;http://my.foxmarks.com/&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Also, go Rebs!  :)&lt;/p&gt;</description>
      <pubDate>Thu, 06 Nov 2008 10:41:08 -0600</pubDate>
      <guid isPermaLink="false">userscripts.org:13749:45915</guid>
      <author>William Furr</author>
      <link>http://userscripts.org/topics/13749</link>
    </item>
    <item>
      <title>Archived Comments, replied by mattkolb @ Thu, 28 Aug 2008 10:12:08 -0500</title>
      <description>&lt;p&gt;I updated the script so that if you aren't focused on the input field anymore, it automatically hides the suggestions immediately instead of waiting a few seconds.&lt;/p&gt;</description>
      <pubDate>Thu, 28 Aug 2008 10:12:08 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:13749:45916</guid>
      <author>mattkolb</author>
      <link>http://userscripts.org/topics/13749</link>
    </item>
    <item>
      <title>Archived Comments, replied by janp @ Wed, 30 Jul 2008 03:01:23 -0500</title>
      <description>&lt;p&gt;I also really like this script. Very handy in many situations. 
&lt;br /&gt;Sometimes it appears in not mail fields. In this cases it's little annoying of having the suggestion list in front of the next input field. So I added&lt;code&gt; margin-left: 25px; &lt;/code&gt;to the&lt;code&gt; div.autosuggest &lt;/code&gt;class. Now I can keep on filling out my forms. Actually it would be better to let the box disappear when leaving the input field.&lt;/p&gt;</description>
      <pubDate>Wed, 30 Jul 2008 03:01:23 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:13749:45917</guid>
      <author>janp</author>
      <link>http://userscripts.org/topics/13749</link>
    </item>
    <item>
      <title>Archived Comments, replied by gantt @ Sun, 20 Jul 2008 14:49:42 -0500</title>
      <description>&lt;p&gt;Thanks for implementing some of my suggestions. It would be nice to somehow store the address book locally and refresh it every x hours/days, but the current implementation is pretty good.&lt;/p&gt;</description>
      <pubDate>Sun, 20 Jul 2008 14:49:42 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:13749:45918</guid>
      <author>gantt</author>
      <link>http://userscripts.org/topics/13749</link>
    </item>
    <item>
      <title>Archived Comments, replied by benjaminm @ Thu, 17 Jul 2008 11:13:51 -0500</title>
      <description>&lt;p&gt;I messed around with this script on my computer, and made it so that (at least on firefox 2, linux) it will allow users to enter comma separated lists of emails.  hope this helps!&lt;/p&gt;

&lt;p&gt;In &lt;code&gt;_b.AutoSuggest.prototype.doAjaxRequest&lt;/code&gt;, change the beginning of the function to look like this:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;
_b.AutoSuggest.prototype.doAjaxRequest = function (input)
{
	// check that saved input is still the value of the field
	if (input != this.fld.value)
		return false;

        // only look at the text after the last comma
        var comma = -1;
        while ( input.indexOf(&quot;,&quot;, comma) &gt;= 0 ) {
                comma = input.indexOf(&quot;,&quot;, comma) + 1;
        }
        if ( comma &gt;= 0 ) input = input.substring(comma);
        // trim
        input = input.replace(/^\s*([\S\s]*?)\s*$/, '$1');
&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;and in the function &lt;code&gt;_b.AutoSuggest.prototype.setHighlightedValue&lt;/code&gt;, change the first part of the function to look like this:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;
_b.AutoSuggest.prototype.setHighlightedValue = function ()
{
	if (this.iHigh)
	{
                // get the text up until the last comma
                var input = this.fld.value
                var comma = -1;
                while ( input.indexOf(&quot;,&quot;, comma) &gt;= 0 ) {
                        comma = input.indexOf(&quot;,&quot;, comma) + 1;
                }
                if ( comma &gt;= 0 ) input = input.substring(0,comma) + &quot; &quot;;
                else input = &quot;&quot;;

		this.sInp = this.fld.value = input + this.aSug[ this.iHigh-1 ].value;
&lt;/pre&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 17 Jul 2008 11:13:51 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:13749:45919</guid>
      <author>benjaminm</author>
      <link>http://userscripts.org/topics/13749</link>
    </item>
    <item>
      <title>Archived Comments, replied by Brent Hopkins @ Thu, 17 Jul 2008 10:14:49 -0500</title>
      <description>&lt;p&gt;This would be a great addition to the Better Gmail 2 extension for Firefox (lifehacker.com)&lt;/p&gt;</description>
      <pubDate>Thu, 17 Jul 2008 10:14:49 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:13749:45920</guid>
      <author>Brent Hopkins</author>
      <link>http://userscripts.org/topics/13749</link>
    </item>
    <item>
      <title>Archived Comments, replied by gantt @ Wed, 16 Jul 2008 19:05:59 -0500</title>
      <description>&lt;p&gt;For Google Apps, the URL is: &lt;a href=&quot;https://mail.google.com/a/EXAMPLE.COM/contacts/data/export?exportType=ALL&amp;amp;out=GMAIL_CSV&quot;&gt;https://mail.google.com/a/EXAMPLE.COM/contacts/...&lt;/a&gt; .&lt;/p&gt;

&lt;p&gt;Other suggestions would be to add support for multiple addresses separated by commas and to no longer change the title of the script (it's installed as a new script).&lt;/p&gt;</description>
      <pubDate>Wed, 16 Jul 2008 19:05:59 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:13749:45921</guid>
      <author>gantt</author>
      <link>http://userscripts.org/topics/13749</link>
    </item>
    <item>
      <title>Archived Comments, replied by mattkolb @ Wed, 16 Jul 2008 08:56:24 -0500</title>
      <description>&lt;p&gt;1) I updated the pattern to be more accurate. Thanks for the suggestion.
&lt;br /&gt;2) I doubled the length of time before the suggestions are hidden. I didn't want to make it show indefinitely because some people might be running other greasemonkey scripts or the site might be doing their own autocomplete. I didn't want it to be permanently in the way. I also added a setting at the top of the script. Tip: Just hit your down arrow. It keeps the autocomplete from going away, and you can keep typing.
&lt;br /&gt;3) I sort of took your suggestion. I made it match the beginning of words and used spaces as a word separator. So &quot;se&quot; would match &quot;Seth Green&quot; or &quot;Bob Sessums&quot; but it wouldn't match &quot;Johnny Appleseed&quot;
&lt;br /&gt;4) I decided not to use the XML file. After checking, the XML file for my contacts was almost 7 times larger (11KB vs 75KB). Also the parsing for CSV is already in there.
&lt;br /&gt;5) Highlighting fixed
&lt;br /&gt;6) Highlighting fixed&lt;/p&gt;

&lt;p&gt;For Apps for your Domain users, I also added a handy little setting at the top of the script that should be easy to change for the URL to get it to download from your Gmail account since the URLs are different for Apps for your Domain users. I would appreciate someone letting me know what the URL is though so I can make it even easier on people.&lt;/p&gt;

&lt;p&gt;I also made the matching for names/emails case-insensitive. Not sure why I didn't see this problem before.&lt;/p&gt;</description>
      <pubDate>Wed, 16 Jul 2008 08:56:24 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:13749:45922</guid>
      <author>mattkolb</author>
      <link>http://userscripts.org/topics/13749</link>
    </item>
    <item>
      <title>Archived Comments, replied by gantt @ Wed, 16 Jul 2008 08:32:40 -0500</title>
      <description>&lt;p&gt;Some suggestions:
&lt;br /&gt;1) improve the excluding pattern: http*://*.google.com/*, http*://google.com/*
&lt;br /&gt;2) increase the delay for hiding the suggestions. They disappear way too quickly. A better idea is to hide the list only when you click somewhere in the page.
&lt;br /&gt;3) Only match prefixes: if I type &quot;ne&quot;, don't match janet because it doesn't start with &quot;ne&quot;. Learn from Gmail's autocomplete feature.
&lt;br /&gt;4) Don't use the CSV file. Try this XML file: &lt;a href=&quot;http://docs.google.com/c/data/contacts?max=1000&quot;&gt;http://docs.google.com/c/data/contacts?max=1000&lt;/a&gt;
&lt;br /&gt;5) Stop highlighting names when you are only matching email addresses.
&lt;br /&gt;6) Start to match names. They are more important than email addresses.&lt;/p&gt;</description>
      <pubDate>Wed, 16 Jul 2008 08:32:40 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:13749:45923</guid>
      <author>gantt</author>
      <link>http://userscripts.org/topics/13749</link>
    </item>
    <item>
      <title>Archived Comments, replied by mattkolb @ Tue, 15 Jul 2008 10:39:12 -0500</title>
      <description>&lt;p&gt;It is pulling contacts from your normal Gmail list. If you go to your Apps address, click Contacts on the left, click Export in the top right, choose to download all contacts, and post the URL of the file you downloaded, I will update it to work with Apps.&lt;/p&gt;</description>
      <pubDate>Tue, 15 Jul 2008 10:39:12 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:13749:45924</guid>
      <author>mattkolb</author>
      <link>http://userscripts.org/topics/13749</link>
    </item>
    <item>
      <title>Archived Comments, replied by Robert Andrews @ Sat, 12 Jul 2008 18:10:59 -0500</title>
      <description>&lt;p&gt;So is this pulling contacts from my Gmail list or my Google Apps Gmail list? If regular Gmail, how can I force it to use Apps, whilst remaining logged in to both?&lt;/p&gt;</description>
      <pubDate>Sat, 12 Jul 2008 18:10:59 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:13749:45925</guid>
      <author>Robert Andrews</author>
      <link>http://userscripts.org/topics/13749</link>
    </item>
    <item>
      <title>Archived Comments, replied by mattkolb @ Fri, 11 Jul 2008 16:07:58 -0500</title>
      <description>&lt;p&gt;It isn't turned on for Google sites because most of the Google sites already have this feature. It would be redundant and most likely just get in the way.&lt;/p&gt;

&lt;p&gt;Gina: Not sure why you were getting the error. I updated that line a little bit so that it might fix your problem. I removed my development copy and am using the copy hosted here without problems.&lt;/p&gt;

&lt;p&gt;It shows up on any form element with the word &quot;to&quot; or the word &quot;mail&quot; in the name or the label of the input so it might not show up all places you expect. If there are any suggestions on a better way to decide when to display it, please let me know.&lt;/p&gt;</description>
      <pubDate>Fri, 11 Jul 2008 16:07:58 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:13749:45926</guid>
      <author>mattkolb</author>
      <link>http://userscripts.org/topics/13749</link>
    </item>
    <item>
      <title>Archived Comments, replied by contactnaveen @ Fri, 11 Jul 2008 03:13:05 -0500</title>
      <description>&lt;p&gt;Hiii, I liked this script.. Can u tell me the license? Can i modify the script and host it?&lt;/p&gt;</description>
      <pubDate>Fri, 11 Jul 2008 03:13:05 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:13749:45927</guid>
      <author>contactnaveen</author>
      <link>http://userscripts.org/topics/13749</link>
    </item>
    <item>
      <title>Archived Comments, replied by Chuck Mattsen @ Thu, 10 Jul 2008 15:58:15 -0500</title>
      <description>&lt;p&gt;[Addendum/Update:  Okay, I see it working for me when I try Hotmail (ugh).  No problems so far, and it's definitely different than the dropdown I was getting with Reader (though I still insist Reader didn't work for me that way before today :-), so that must be something else unrelated.  In any case, so far, so good since my memory is mush when it comes to addresses.]&lt;/p&gt;</description>
      <pubDate>Thu, 10 Jul 2008 15:58:15 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:13749:45928</guid>
      <author>Chuck Mattsen</author>
      <link>http://userscripts.org/topics/13749</link>
    </item>
    <item>
      <title>Archived Comments, replied by Justin Camera @ Thu, 10 Jul 2008 15:17:12 -0500</title>
      <description>&lt;p&gt;@Chuck this script is disabled on google.com; I think Reader typically pulls from your address book anyway&lt;/p&gt;

&lt;p&gt;Just installed to try, hopefully it works.&lt;/p&gt;</description>
      <pubDate>Thu, 10 Jul 2008 15:17:12 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:13749:45929</guid>
      <author>Justin Camera</author>
      <link>http://userscripts.org/topics/13749</link>
    </item>
    <item>
      <title>Archived Comments, replied by Chuck Mattsen @ Thu, 10 Jul 2008 14:42:34 -0500</title>
      <description>&lt;p&gt;Works for me, I'm happy to report ... I'm thinking maybe it was pulled, edited, and re-upped?, as my first two attempts to install brought me to the homepage, not the install script dialog ... on the third attempt, I got the usual install routine and a quick test (sending an e-mail to a Gmail contact from within Google Reader) was successful.&lt;/p&gt;</description>
      <pubDate>Thu, 10 Jul 2008 14:42:34 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:13749:45930</guid>
      <author>Chuck Mattsen</author>
      <link>http://userscripts.org/topics/13749</link>
    </item>
    <item>
      <title>Archived Comments, replied by Gina Trapani @ Wed, 09 Jul 2008 00:02:32 -0500</title>
      <description>&lt;p&gt;Love the idea of this script, but can't get it to work.  My error console says:&lt;/p&gt;

&lt;p&gt;Error: 
&lt;br /&gt;Source File: file:///[....]./gm_scripts/google_contacts_autocomp/google_contacts_autocomp.user.js
&lt;br /&gt;Line: 1823&lt;/p&gt;

&lt;p&gt;This is the line:
&lt;br /&gt;window.addEventListener('load', go(), false);&lt;/p&gt;</description>
      <pubDate>Wed, 09 Jul 2008 00:02:32 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:13749:45931</guid>
      <author>Gina Trapani</author>
      <link>http://userscripts.org/topics/13749</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jesse Andrews @ Tue, 16 Nov 2004 19:05:14 -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:14 -0600</pubDate>
      <guid isPermaLink="false">userscripts.org:13749:45914</guid>
      <author>Jesse Andrews</author>
      <link>http://userscripts.org/topics/13749</link>
    </item>
  </channel>
</rss>
