Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Gmail Google Calendar sidebar

Adds a sidebar to GMail that displays your upcoming events/appointments from Google Calendar.

Preview:

This script is an updated and enhanced version of Add Calendar Feed - GMail, by cgm.

The changes to this script from the original include:

  • A fix to deal with the script failing due to changes on Google's side
  • Support for feeds from multiple calendars
  • Different colouration for each calendar
  • Caching of calendar data, so it is not re-downloaded with every new page that is loaded
  • Some code cleanup/reorganisation
  • Minor aesthetic changes
Setup Instructions:
  1. Click the install icon for this user script in FireFox
  2. First get your Calendar Feed URL from calendar.google.com (XML)
    1. click the down arrow beside the calendar name in the left panel
    2. choose calendar settings
    3. click the XML button next to "Private Address:" at the bottom
    4. copy the URL in the pop-up
  3. Add this URL google bookmarks (http://google.com/bookmarks) with a label that does not contain spaces (GMgcal recommended)
  4. When GMail is locaded/refreshed a new NAV box will appear indicating you neeed to run setup.
  5. To run setup, click Firefox's tools menu, then choose user script commands->GMail Agenda Setup
  6. This will prompt you for the bookmark label (the one you selected above) and the events to display
  7. GMail _should_ refresh with your calendar loaded.
  8. To add feeds for further calendars, simply repeat steps 2 and 3 for each. Make sure you use the same label as before.
  9. To change the colour of items from a calendar, rename that calendar (in google calendar) so that it ends with a colour hex code, such as #F2A640 for orange -- the # is necessary




Feb 3, 2008
ultrasur1 User

werd. this needs to be updated....please. great script & i miss it terribly.


 
Jan 17, 2008
jfermons User

Hi,

It's a great tool, but it doesn't work anymore with the new version of Gmail.

Do you plan to make another version that works with it?

Thanks,
Jack


 
Nov 20, 2007
The Dot Scriptwright

Hi. I liked this idea so i made another script that integrates calendar. It isnt half as advanced as this and it doesnt even work in the same way but i thought it might be of use to somebody so i put it up here.


 
Nov 8, 2007
Dityus Seagu... User

Brilliant script - makes managing ur day so easy ... but gmail v2 does'nt allow it... managing by reverting back to the older version of gmail each time..
But Brad- workout a new version please!!


 
Oct 30, 2007
Chew User

Hmmm now that I got it working, the sidebar shows the time +8 hours from my calendars. My calendars are set at GMT+8 as I stay in Malaysia. 11am becomes 7pm in the sidebar.


 
Oct 30, 2007
Chew User

Did some googling and got it. THanks so much


 
Oct 29, 2007
Tracy McKibben User

Thanks Tom, that does indeed fix the problem.


 
Oct 29, 2007
Chew User

Errm I am not good with the scripts. Could someone amend and then I could just download and install it? Sorry or maybe someone could share how to edit it. Thank you in advanced


 
Oct 26, 2007
Tom Parker User

Replacing line 393
if(whoNodes[whoI].getElements("gd:attendeeStatus")[0].getAttribute('value').match(/.declined/)
with
if (whoNodes[whoI].getElements("gd:attendeeStatus").length!=0 && whoNodes[whoI].getElements("gd:attendeeStatus")[0].getAttribute('value').match(/.declined/)

fixes the loading problem

(i.e. adding "whoNodes[whoI].getElements("gd:attendeeStatus").length!=0" test to the beginning)


 
Oct 25, 2007
buono User

Yes, I have had this issue for 4 days.

It happens on each machine I use.


 
Oct 24, 2007
Tracy McKibben User

I've been using this script for several months, love it. Yesterday, it stopped working - the sidebar gets stuck on "Loading <my>". I assume Google changed something. Anybody else having this problem?</my>


 
Oct 8, 2007
buono User

I have a strange issue. All was working fine but now I have calendar entries appearing in the sidebar in seemingly random phases. At the moment I have some appointments from the next 3 weeks appearing, but they are not the next 5 in my Google Calendar.

is there a certain type of appointment that does or does not get displayed?

I have some that are displayed for a few days and then neared the event are no longer displayed.


 
Sep 22, 2007
gehx User

got my last issue sorted, now is there a way to use this w/o having to make my calendar viewable to the world?


 
Sep 22, 2007
gehx User

where is the down arrow beside the calendar name in the left panel???


 
Sep 22, 2007
Cristo User

Hi,
i've solved for my question 2 and suggest to check for this also to other users experiencing the problem:

on Google Bookmark you have to set the label of the link to your calendar to GMgcal, not the name of the link.


 
Sep 22, 2007
Cristo User

Hi, two question:

1 - Is the actualy script secure against the cookie stealing problem?

2 - I tried anyway to use it and even though i setted it as described it doesn't show me my calendar but the phrase ""Calendar URL not found. Please run Setup under Tools -> User Script. Commands." Why?


 
Sep 19, 2007
Glenn Scriptwright

Hey Brad, I've made some enhancements to this scripts. I cleaned up the caching so it doesn't have to re-render every time gmail is refreshed - my computer is slow :( ; I moved the color checking to the name of the bookmark rather than the name of the calendar ; and I started pulling the bookmark data from the bookmark rss feed ; and a couple of other minor fixes to prevent firebug from spamming me with warnings :-)
I'm wasn't sure of the best way to get it to you (since I couldn't find an email, or private message thing with attachments) so I just posted it as a new script. Review it at your leisure, incorporate the changes - or not :-)
Anyway, here it is: http://userscripts.org/scripts/show/12396


 
Sep 18, 2007
Nathan Sudds User

Does this work with Gmail for my domain? I love the idea, because sometimes I forget to look at the calendar and it's great to have it right there in Gmail.


 
Jun 17, 2007
tommy13v User

I have recurring events and when the it gets to one it only shows that event over and over instead of showing it once and moving on.


 
Jun 16, 2007
Sheeko User

I would agree ... allowing for calendar colors without having to change the calendar name would be great. I still use the google calendar site and would not like to see my calendar names along with the color code.


 
Jun 4, 2007
Tomas User

Same problem here: "Calendar URL not found. Please run Setup under Tools -> User Script Commands."


 
May 28, 2007
RVeur23 User

I don't undestand... It's not working and I'v tryed several time the configuration steps... it's always displaying "Calendar URL not found. Please run Setup under Tools -> User Script Commands." :(


 
May 23, 2007
Deb Morrissey Scriptwright

Do you have any idea why my appointments are displaying 4 hours off? (10:00am is showing as 2:00pm, etc.).

And the colors are not working for me properly either - one calendar changed colors (luckily the most important one), but the others refused. Would the fact that they're public calendars make a difference?


 
May 16, 2007
Ephilei Scriptwright

Oops! Disregard my last comment.


 
May 16, 2007
Ephilei Scriptwright

Great script! Would be nice to add a keyboard shortcut to toggle. Google Reader does this using just "u".


You could comment on this script if you were logged in.