+ Gmail

· · software

So I’ve decided once again I dislike having my mail client opened in one of the browser tabs and I want it somehow separate. I’m still unsure why’d I got this feeling, but I like the result - read on if you’re interested.

I went with - free version at first. I’ve put it on Cmd-Ctrl-] and it’s been working pretty okay for some time, so I’ve bit the bullet and paid all the whopping 5$!

Which makes it really good: I’ve put an icon, made it fullscreen (wow, nobody can distract me now when I’m replying to emails - since I turn off popups for everything), and made it display amount of unread email in Inbox with this userscript (yes, it has userscripts and some API):

function getUnread() {
    var inbox = document.querySelector('a[title^="Inbox"]');
    var m = inbox.title.match(/Inbox \((\d+)\)/);

    return m ? parseInt(m[1], 10) : 0;

function setBadge(count) {
    window.fluid.dockBadge = count ? '' + count : '';

function updateDockBadge() {
    setTimeout(updateDockBadge, 1000);
setTimeout(updateDockBadge, 1000);

(yeah, I don’t need to parse unread counter here - I’ll never reuse the code anyway, but somehow this makes me feel cleaner)

So yeah, now it’s sitting on a full screen single hotkey away with an unread message count badged on top of an icon. Feels good.