Archive for November, 2006

Tweak: Gmail and Reader Integrator

Tuesday, Nov 7th, 2006
Comments
e383282d97ff000944358bb0beb450ad Del.icio.us

Editing the Sizes of the Split-Windows

Suppose you wish to edit the sizes of the split-windows for Gmail and Reader Integrator, this is possible and easy to accomplish. Follow these steps to customize the Gmail or Reader window sizes to your preference:

  1. In Firefox, open Tools > Greasemonkey > Manage..
  2. Click on “Gmail + Reader Integrator” in the left panel
  3. Click “Edit” button
  4. Choose a text editor, preferably with “Lines Number” display
  5. Go to Line 54 and 55
  6. Edit the sizes (in px)
Quick Tip 1:

In a 1280 x 1024 resolution, the height of an email row in Inbox is approximately 22px. Therefore, the default for “GMAIL_SPLIT_HEIGHT” is set as 220px which displays about 10 email rows in split-window view.

Editing the Size of the Reader Window (Gmail Collapsed )

By default, on collapsing the Gmail window while the Reader is open, the Reader would be resized to fill the height of a screen. Suppose you wish to further extend the height of the Reader when the Gmail window is collapsed, do the following:

  1. Search for function resizeReaderFrame, or Line 665
  2. Change “window.innerHeight - readerEmbed.offsetTop” to a large value
Quick Tip 2:

You can open|close the Reader window by clicking on the Reader link in the LHS navi. That link is like a “toggle” for the visibility of the Reader window.

Feel free to drop me a message regarding other preferred customizations?

Lastly, the response towards the script has been overwhelming. Thank you!

Bookmark & Share
Subscribe to Winstonyw

Greasemonkey Script: Gmail and Reader Integrator

Friday, Nov 3rd, 2006
Comments
98c71549d280d7f0af91f08e995aa1d7 Del.icio.us
Update on 6th August 2008

This script does not work with the new version of Gmail and due to misc. commitments, I am not able to devote effort and time to improve this script (as much as I would like to). For similar functionality and more, please take a look at LifeHacker’s Better Gmail 2 Firefox extension.

Thank you once again for the overwhelming response!

Update on 11th November 2006

Previously, if your default start-page in “Settings” was “Home”, it was redirected to “All”. This has now been modified such that no redirection occurs, and “Home” is displayed.

Thanks to David for pointing this out. Download the updated script.

Update on 9th November 2006

There is a programming bug, specifically a variable name error on Line 304 in the script. The variable name for the Google Reader shared items URL should be READER_BROADCAST_URL and NOT READER_SHARED_URL. Sorry for the mistake! Download the updated script, again.

Update on 6th November 2006

I removed the Reader view when “Contacts” link is clicked as it “damages” the interface. Download the updated script. No other changes to the rest of the script logic.

The Short Story

I wrote a Greasemonkey script that integrates Gmail with Google Reader.

Features

  • Spilt-window view of Gmail and Reader on a single page
  • Links to collapse|expand either Gmail or Reader
  • Integrated Reader uses start-page as specified in Reader’s “Settings”
  • Labels selector
  • Key ‘v’ to open Reader links in a new Window
  • Automatic resize of Gmail and Reader views

Requirements

Installation Instructions

  1. Install Greasemonkey Extension
  2. Click on THE SCRIPT (gmailreaderintegrator.user.js)
  3. Click “Install”
  4. Open Gmail and ENJOY!

Screenshots

GR_1.jpg GR_2.jpg
GR_3.jpg GR_4.jpg

The Not-So-Short Story

Recently when Google reintroduced Google Reader with a new look, new features and improved usability, they marketed it as the “Inbox for the Web”. Immediately, the word “inbox” associates the Reader to emails, and Chris Wetherell - Google Reader Engineer, explained that using the Reader to obtain the latest updates of your favourite websites is similar to reading your emails. You just wait for the updates to be sent to your inbox.

Within the same day, the Reader created a huge buzz and I gave it a try. Previously, I wasn’t accustomed to the not-so-intuitive interface of the historical version and so chose to use Rojo as my RSS aggregator instead. But after exploring the new Reader, I was excited about the changes which Google introduced and have started using it as my default RSS reader.

Then, I found this Greasemonkey script by Mihai Parparita, from a post in Lifehacker, which embeds the Reader into Gmail. This makes perfect sense! They both are inboxes and ideally, they should belong on the same page. Moreover, I use Gmail frequently at work and the interface integration is an amazing productivity hack.

However, I felt that it wasn’t adequate for my use, and that my wish-functionalities were similar to comments left on Mihai’s Blog and Lifehacker. Therefore, I decided to write my own script to integrate Gmail and Google Reader; even though I have never written a Greasmonkey script before.

By examining Mihai’s code, I was able to learn and understand how a Greasemonkey script is written with Javascript. Then, I took about 1.5 weeks to complete coding my version of the Gmail and Reader Integrator, with a list of features that brought more functionalities to the integration. Importantly, I should bring to attention that I reused certain functions written by Mihai for convenience, and I acknowledged these functions clearly in my script. Thank you Mihai for the inspiration and wonderful code.

Lastly, please do report any bugs encountered or feedback any suggestions for possible improvements. I hope that you would find my Gmail and Reader Integrator script useful, as much as I do.

Bookmark & Share
Subscribe to Winstonyw
Winston{YW} Copyright © 2008
Powered By Wordpress, JQuery and A Lazy Search Monkey