<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DeHamerspace &#187; gmail</title>
	<atom:link href="http://dehamerspace.com/tag/gmail/feed/" rel="self" type="application/rss+xml" />
	<link>http://dehamerspace.com</link>
	<description></description>
	<lastBuildDate>Tue, 01 Jun 2010 16:11:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The Ultimate Gmail Browser</title>
		<link>http://dehamerspace.com/2009/04/27/the-ultimate-gmail-browser/</link>
		<comments>http://dehamerspace.com/2009/04/27/the-ultimate-gmail-browser/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 13:48:55 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[fluid]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[growl]]></category>
		<category><![CDATA[ssb]]></category>

		<guid isPermaLink="false">http://dehamerspace.com/?p=131</guid>
		<description><![CDATA[I&#8217;ve talked before about site-specific browsers (SSBs) and even mentioned that I&#8217;ve become a big fan of the Fluid SSB on the Mac. I&#8217;ve got SSBs for all sorts of applications (Google Reader, Pandora, etc.) but the one that I spend the most time in is my Gmail SSB.
I decided to devote some time this [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve talked before about <a href="http://dehamerspace.com/2008/04/18/site-specific-browsers/">site-specific browsers</a> (SSBs) and even mentioned that I&#8217;ve become a big fan of the <a href="http://dehamerspace.com/2009/03/26/the-switch-part-2-applications/">Fluid SSB</a> on the Mac. I&#8217;ve got SSBs for all sorts of applications (Google Reader, Pandora, etc.) but the one that I spend the most time in is my Gmail SSB.</p>
<p>I decided to devote some time this week to digging through the various features of Fluid to see just what was possible. What I ended-up with is a Gmail client that is a huge improvement over the standard (and, arguably, already pretty good) Gmail experience. The sections below will take you through the various steps I used to create the Ultimate Gmail Browser.</p>
<h3>Create the SSB</h3>
<p>The first step is to install <a href="http://fluidapp.com/">Fluid</a> and create your Gmail SSB. Upon launching Fluid you&#8217;re presented with a pretty simple dialog that asks you to fill in a few fields:</p>
<ul>
<li>The starting URL for the browser. Here I&#8217;m using my Google Apps mail URL, but regular Gmail users will want to use <em>https://mail.google.com</em>.</li>
<li>The name for the SSB. This is the name that will be assigned to the &#8220;application&#8221; that is created.</li>
<li>The location where the SSB app will be created. Your <em>Applications</em> folder is probably a good choice.</li>
<li>The icon to associate with the SSB. This is the icon that will be used to represent the application in both the Finder and Dock.</li>
</ul>
<div>
<img src="http://dehamerspace.com/wp-content/uploads/2009/04/fluid-2.png" alt="Fluid-2.png" border="0" width="550"/>
</div>
<div style="float: right"><a href="http://dehamerspace.com/wp-content/uploads/2009/04/gmail.png"><img src="http://dehamerspace.com/wp-content/uploads/2009/04/gmail.png" alt="gmail.png" border="0" width="64"/></a><br />
<a href="http://dehamerspace.com/wp-content/uploads/2009/04/gmail2.png"><img src="http://dehamerspace.com/wp-content/uploads/2009/04/gmail2.png" alt="gmail2.png" border="0" width="64" /></a></div>
<p>
By default, Fluid will attempt to retrieve the <em>favicon.ico</em> image from the destination site and use that as the application icon. This would be great if it weren&#8217;t for the fact that these icons are typically 16&#215;16 pixels. If you want something that is going to look nice when displayed in the Dock you&#8217;ll need something with a bit better resolution.</p>
<p>
Luckily, there is an entire <a href="http://www.flickr.com/groups/fluid_icons/">Flickr group</a> dedicated entirely to aggregating high quality Fluid icons. I&#8217;ve included PNG versions of my two favorite Gmail icons here.</p>
<h3>Enable the Dock Badge</h3>
<p>For certain sites (Gmail, Google Reader and Yahoo! Mail) Fluid will automatically add a little badge to the Dock icon that indicates the number of unread items you have. This is a pretty cool little feature that just makes the SSB feel even more like a real desktop application. </p>
<p><img src="http://dehamerspace.com/wp-content/uploads/2009/04/dock.png" alt="dock.png" border="0" width="483" height="63" /></p>
<p>The dock badge should be enabled by default, but if you find that it is not displaying there are two settings to check:</p>
<ol>
<li>In the Preferences dialog for your Gmail SSB application check to make sure that the &#8220;Fluid attempts to show Dock badge labels&#8221; option is enabled.</li>
<li>In the settings for your Gmail account go to the &#8220;Labs&#8221; tab and verify that the &#8220;Hide Unread Counts&#8221; feature is <strong>disabled</strong>. When this feature is enabled it causes Gmail to suppress the unread message count indicators that typically appear in the navigation menu next to your folders/labels. Fluid uses the message count that appears next to the Inbox link to determine how many unread messages you have &#8212; if this value isn&#8217;t being displayed, Fluid won&#8217;t render the dock badge.</li>
</ol>
<h3>Tweak the Gmail UI</h3>
<p>Fluid has a feature called Userstyles which allows you to specify a custom style sheet for pages that are displayed in the SSB. As long as you are fluent in CSS, this essentially gives you the ability to completely re-skin any site. Firefox users may be familiar with the <a href="https://addons.mozilla.org/en-US/firefox/addon/2108">Stylish</a> add-on which gives you the same capability.</p>
<p>The Userstyles feature is accessed via the SSB&#8217;s Preferences dialog. You simply need to specify the URL pattern and the CSS rules that you want applied to those URLs.</p>
<p><img src="http://dehamerspace.com/wp-content/uploads/2009/04/userstyles-preferences.jpg" alt="Userstyles Preferences.jpg" border="0" width="550" /></p>
<p>In the example above, I&#8217;ve defined a custom style sheet for any URL that contains <em>mail.google.com</em>. I&#8217;m not going to even attempt a complete overhaul of the Gmail UI &#8212; I&#8217;ll leave that as an exercise for people far more talented than myself (you may want to check out <a href="http://userstyles.org">userstyles.org</a> to see what cool things other people have done). However, there are some minor tweaks that I would like to make to the default Gmail theme.</p>
<p>The screenshot below shows my Gmail SSB <em>before</em> applying my custom style sheet. The numbered items are the UI elements that I want to remove or change in some way with my style sheet. In the section below I&#8217;ll discuss each of the numbered items and specify the CSS rule(s) I used to alter them.</p>
<p><img src="http://dehamerspace.com/wp-content/uploads/2009/04/inbux-before-thumb.png" alt="Inbox Before" border="1" width="550" height="410" /></p>
<ol>
<li>The first thing on the cut list is the little green Labs icon which, when clicked, takes you directly to the Labs tab of the Gmail settings. You can get to exactly the same screen via the Settings link so I&#8217;m gonna ditch it.

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">div<span style="color: #cc00cc;">#guser</span> span<span style="color: #00AA00;">&#91;</span>title<span style="color: #00AA00;">*=</span><span style="color: #ff0000;">'Labs'</span><span style="color: #00AA00;">&#93;</span> <span style="color: #00AA00;">&#123;</span> 
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span> !important<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>You&#8217;ll see that for most of these styles I try to make my CSS selectors pretty specific so that I don&#8217;t accidentally target other elements on the page. In this case, I&#8217;m looking specifically for a <em>span</em> whose <em>title</em> attribute contains the word &#8220;Labs&#8221; and is a child of a <em>div</em> with an ID of &#8220;guser&#8221;.
</li>
<li>
I&#8217;m not interested in the older version of the Gmail UI, so I&#8217;m going to get rid of this link as well.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>4
5
6
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">div<span style="color: #cc00cc;">#guser</span> a<span style="color: #00AA00;">&#91;</span>href$<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'ui=1'</span><span style="color: #00AA00;">&#93;</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span> !important<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

</li>
<li>Not once have I ever &#8220;starred&#8221; a message. Gone.

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>7
8
9
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">div<span style="color: #6666ff;">.nH</span><span style="color: #6666ff;">.qj</span> <span style="color: #00AA00;">&gt;</span> div<span style="color: #6666ff;">.nH</span> <span style="color: #00AA00;">&gt;</span> div<span style="color: #6666ff;">.nH</span><span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span> !important<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

</li>
<li>I don&#8217;t use Google Chat so there&#8217;s no need for this menu item either.

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>10
11
12
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">div<span style="color: #6666ff;">.nH</span><span style="color: #6666ff;">.qj</span> <span style="color: #00AA00;">&gt;</span> div<span style="color: #6666ff;">.nH</span> <span style="color: #00AA00;">&gt;</span> div<span style="color: #6666ff;">.nH</span><span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">3</span><span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span> !important<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

</li>
<li>This one is a little different &#8212; I still want the link to my spam folder, but I don&#8217;t want to be constantly reminded of the thousands of messages I have in there. The clever CSS trick below hides the existing spam link and then redraws the string &#8220;Spam&#8221; on top of it.

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>13
14
15
16
17
18
19
20
21
22
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.pX</span> a<span style="color: #00AA00;">&#91;</span>href$<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'#spam'</span><span style="color: #00AA00;">&#93;</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">visibility</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.pX</span> a<span style="color: #00AA00;">&#91;</span>href$<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'#spam'</span><span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">:</span><span style="color: #3333ff;">:before </span><span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">'Spam'</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">visibility</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">visible</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">400</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">underline</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>I actually lifted this little bit of CSS from the <a href="http://userscripts.org/scripts/show/22660">Gmail Spam-count Hide</a> script I found on <a href="http://userscripts.org">userscripts.org</a>. Note that you can use Gmail&#8217;s &#8220;Hide Unread Counts&#8221; feature to accomplish this same thing, but it also hides the unread count for the inbox folder. We already saw that the Fluid dock badge feature is dependent on the inbox unread count and the Growl integration that I&#8217;ll introduce in the next section will be dependent upon it as well.</li>
<li>I don&#8217;t use the chat feature in Gmail at all, so I&#8217;m going to completely remove this widget.

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>23
24
25
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">div<span style="color: #6666ff;">.nH</span><span style="color: #6666ff;">.s</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span> !important<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>I could probably handle both #4 and #6 by simply disabling the Google Apps chat feature, but it appears that having chat enabled is a requirement for using the tasks feature which I do like to use.</li>
<li>I think I&#8217;ve already seen all the tips Gmail has to offer, this is just noise at this point.

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>26
27
28
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">div<span style="color: #6666ff;">.nH</span><span style="color: #6666ff;">.l2</span><span style="color: #6666ff;">.ov</span> div<span style="color: #6666ff;">.mn</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span> !important<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

</li>
<li>
More links related to chat and the baisc HTML mode.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>29
30
31
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">div<span style="color: #6666ff;">.nH</span><span style="color: #6666ff;">.l2</span><span style="color: #6666ff;">.ov</span> div<span style="color: #6666ff;">.mp</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span> !important<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

</li>
<li>I&#8217;m not particularly interested in the terms of service (which I&#8217;m surely violating with my UI alterations) or privacy policy so I&#8217;m going to remove the remainder of the page footer.

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>32
33
34
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">div<span style="color: #6666ff;">.nH</span><span style="color: #6666ff;">.l2</span><span style="color: #6666ff;">.ov</span> div<span style="color: #6666ff;">.ma</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">visibility</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span> !important<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

</li>
</ol>
<p>Obviously, this is just my nit-picky list of UI tweaks. I won&#8217;t go into specifics here but I&#8217;m sure that you could identify other <strong>ad</strong>noying features of Gmail that would be nice to remove.</p>
<p>If you&#8217;re interested in making your own changes I highly recommend using Firefox and the <a href="http://getfirebug.com/">Firebug add-on</a> to explore the Gmail DOM and understand the various tags, IDs and classes that are employed.</p>
<p>After applying my custom style sheet to the Gmail UI, the result looks like this:</p>
<p><img src="http://dehamerspace.com/wp-content/uploads/2009/04/inbox-after-thumb.png" alt="Inbox After Thumb.png" border="0" width="550" height="411" /></p>
<h3>Add Growl Support</h3>
<p>The final step in configuring the ultimate Gmail browser is to enable Growl support. If you&#8217;re not familiar with <a href="http://growl.info/">Growl</a> it&#8217;s basically a universal notification system for OS X. Any application that is Growl-aware (and there are lots of them) can post status messages to Growl and then Growl takes responsibility for presenting those messages to the user. The nice thing about it is that it standardizes the presentation of status messages across all of your applications and gives you a central place to control and customize those notifications. Trust me, it&#8217;s cool &#8212; install it.</p>
<p>Like many applications, Fluid has Growl support built-in. More importantly, Fluid exposes an API for sending your own Growl notifications. Using this capability, we can write a script that will check for new messages in your inbox and send a notification to Growl whenever you have new mail. This type of integration with the OS is the sort of thing you typically lose when you use a web-based application. </p>
<p>On my system, I have Growl configured to make a little beep and display the following notification pop-up whenever it receives a notification from my Gmail SSB.</p>
<p><img src="http://dehamerspace.com/wp-content/uploads/2009/04/growl.jpg" alt="Growl.jpg" border="0" width="389" height="138" /></p>
<p>In much the same way that Fluid allows you to create your own style sheet via the Userstyles feature, there is a Userscript feature that allows you to run Javascript code in the SSB that interacts with the current page. This concept should be familiar to anyone that has played with the Firefox <a href="http://www.greasespot.net/">Greasemonkey</a> add-on.</p>
<p>I wrote the script below (also posted on <a href="http://userscripts.org/scripts/review/46637">userscripts.org</a>) which will watch the unread message count of your inbox and post a message to Growl anytime it sees that number increase (<strong>Note: Any changes that google makes to the structure of the HTML has the potential to break this script &#8212; I&#8217;ll do my best to keep this script up-to-date and working. The most recent version of this code can be found at the userscripts.org link above.</strong>).</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// ==UserScript==</span>
<span style="color: #006600; font-style: italic;">// @name        Gmail Growl</span>
<span style="color: #006600; font-style: italic;">// @namespace   http://dehamer.com</span>
<span style="color: #006600; font-style: italic;">// @description Gmail Growl Notification for Fluid</span>
<span style="color: #006600; font-style: italic;">// @include     http://mail.google.com/*</span>
<span style="color: #006600; font-style: italic;">// @include     http://*.google.com/mail/*</span>
<span style="color: #006600; font-style: italic;">// @include     https://mail.google.com/*</span>
<span style="color: #006600; font-style: italic;">// @include     https://*.google.com/mail/*</span>
<span style="color: #006600; font-style: italic;">// @author      Brian DeHamer</span>
<span style="color: #006600; font-style: italic;">// ==/UserScript==</span>
&nbsp;
<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>window.<span style="color: #660066;">fluid</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #003366; font-weight: bold;">var</span> unreadMsgCount <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #003366; font-weight: bold;">function</span> growlNewMessages<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
        <span style="color: #003366; font-weight: bold;">var</span> oldCount <span style="color: #339933;">=</span> unreadMsgCount<span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #006600; font-style: italic;">// Locate the DIV containing the Inbox hyperlink</span>
        inboxDiv <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;canvas_frame&quot;</span><span style="color: #009900;">&#41;</span>
            .<span style="color: #660066;">contentDocument</span>.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;:r2&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>inboxDiv<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
            <span style="color: #006600; font-style: italic;">// Grab the title of the Inbox hyperlink and locate the</span>
            <span style="color: #006600; font-style: italic;">// unread message count</span>
            inboxLinkTitle <span style="color: #339933;">=</span> inboxDiv.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'a'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">title</span><span style="color: #339933;">;</span>
            matches <span style="color: #339933;">=</span> inboxLinkTitle.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/\((\d*)\)/</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>matches<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                unreadMsgCount <span style="color: #339933;">=</span> matches<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
                unreadMsgCount <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #006600; font-style: italic;">// If the unread message count is greater than it was the last</span>
        <span style="color: #006600; font-style: italic;">// time we checked, we know that we've received one or more new</span>
        <span style="color: #006600; font-style: italic;">// messages.</span>
        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>unreadMsgCount <span style="color: #339933;">&gt;</span> oldCount<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
            fluid.<span style="color: #660066;">showGrowlNotification</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
                title<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Gmail&quot;</span><span style="color: #339933;">,</span>
                description<span style="color: #339933;">:</span> unreadMsgCount <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; unread message(s)&quot;</span><span style="color: #339933;">,</span>
                priority<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>
                sticky<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span>
            <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #006600; font-style: italic;">// Check for new messages every 10 seconds</span>
    window.<span style="color: #660066;">setInterval</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>growlNewMessages<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">10</span> <span style="color: #339933;">*</span> <span style="color: #CC0000;">1000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>To install this script you can simply go to the Fluid script menu and select the &#8220;New Userscript&#8230;&#8221; option. Give the script a name, paste in the code above and you should be good to go (you may have to restart the SSB for the script to take effect).</p>
<p>There you have it. You&#8217;ve now got the <strong>Ultiamte Gmail Browser</strong>. Let me know if you&#8217;ve got any customizations of your own.</p>
]]></content:encoded>
			<wfw:commentRss>http://dehamerspace.com/2009/04/27/the-ultimate-gmail-browser/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>
