red orange yellow green blue pink

Google Calendar TODO list for GreaseMonkey

Important update: Google Calendar has built-in tasks since May 13th. This script is thus no longer necessary to install.

I’ve discovered GreaseMonkey. Yes, I am a bit late, but once I finally installed it, I sure love it. Though the script, that I needed, only existed in a very simple version.

I have thus taken the initial version of the Google Calendar TODO list by Matias Pelenur and the modified version by Gimite Ichikawa and created a brand new version that I submitted to UserScripts.org.

First thing this new version does is, that it uses the eventStatus-field for setting whether the todo has been done or not. And then there is a flush button to flush (remove) todones. And finally the todos and todones are sorted using the status and title. This will be a work in progress and will be developed further upon.

My further todo for the todo (a todo todo) includes (but not necessarily in this order):

  • Prioritize (and sort by this)
  • Refactor to use mochikit instead of homebrewed stuff
  • Refactor to use category instead of time
  • Dockable sidebar
  • Settings
  • Groupable elements
  • Colored elements
  • Set dates for expiry and show up in calendar too

If you have GreaseMonkey, point it here or here.

Updates

2007-06-06
Version 0.4.1 posted here and at Userscripts.org due to bug after Google Calendar update.

47 Responses to “Google Calendar TODO list for GreaseMonkey”

  1. Morten Reinholdt Says:

    Sweet

  2. alexis Says:

    hey there. this script work well for me, thanks! i’m wondering if something similar could be done for gmail?

    thanks again,
    alexis

  3. Barklund Says:

    I’m pretty sure it could – but where should it be saved? If saved locally in the browser, it would not be possible to access it from everywhere. And if saved in a mail, well, don’t know if that is possible.

    I will maybe look into that later, but first up, I will improve it for GCal and create a gadget for google frontpage using the same GCal events.

  4. Johan Karlbom Says:

    SUPER! I actually discovered the old script (Gimite’s) yesterday and sat down this evening to do about the same stuff you allready had done. Now I’ll try to make it work with Gmail, but I really don’t know how. Thank’s for your work!

  5. Johan Karlbom Says:

    One more thing: Is it not possible to use the same GCal events in GMail?

  6. Jesper Karsrud Says:

    Can’t get the script to work.. Where is the TODO list? Maybe I’m just stupid, or my Greasemonkey might be malfunctioning like alot of other stuff on my computer these days..

  7. Barklund Says:

    Johan: The CAL-cookie needed for authenticating to the GCal API is linked to .www.google.com and not just .google.com – thus it cannot be accessed from GMail running off mail.google.com. :(

    Jesper: It should show above the list of calendars in a box similar to the calendar-list – in the right side below the little month view. :)

  8. Tanny O'Haley Says:

    Could you add a few more fields to each todo item? In order of importance.

    * Title (you already have)
    * Category
    * Description
    * Due Date

    Being able to sort by Category, Title or Due Date would be pretty cool too.

    This would allow me to use the Getting Things Done methodology by David Allen.

  9. Barklund Says:

    There isn’t much room in the little sidebar for all that, but I will try. Category and Due date was already on my todo, but a little popup with a description could be nice as well. I will most likely post an improved version of the script within a few days.

  10. resrc Says:

    There seems to be a Google Calendar update. Greysemonkey Todo script is not working anymore.

  11. Barklund Says:

    Update posted both locally and on userscripts.

  12. Mike Says:

    Sweet! Thanks for updating this script! I was tearing my hair out after my todo list went away when Gcal was updated. Now all my tasks are back!

  13. josh Says:

    the sort order changes spontaneously sometimes.

    all day, i entered things and they sorted alphabetically, and then i logged in tonight and they sorted themselves in the order they were created/modified.

    I want them alphabetical, because i use a keyword at the beginning of each task as a way to group them.

    how can i make them stay alphabetical?

  14. Barklund Says:

    Was the error consistent? Are you completely unable to get them alphabetically sorted? If you change or add one item, does the sort order correct itself?

    I’m not saying there is no error – just trying to figure out how it affects what. :)

  15. Bill N Says:

    Uh – how do you install it..?? Thanks
    Bill

  16. Barklund Says:

    Go to greasespot.net and install Greasemonkey. Then go here to install this script – by pressing the install button in the sidebar creating an “install userscript” popup.

  17. lee sander Says:

    Hi,
    i’m not much of a programmer but would like to use this todo list with the google calander. How do I use this script?
    thanks

  18. Barklund Says:

    See the above comment – it is quite simple :)

  19. Amanda Says:

    Could you post a screenshot?

  20. kalowski Says:

    I see the little thing below my small calendar, but how do I add tasks to it?

  21. Janette Says:

    I promise, I’m not stupid (at least I don’t think so), but for the life of me, I cannot figure out how to get this to work! I click on the download script at userscripts.org. Nothing seems to happen automatically, so there must be another step, but I don’t know what to do after that. HELP! Please!!

  22. Rue Says:

    OK, Maybe I’m a dingbat. But I don’t see the list. I saw the comment above “It should show above the list of calendars in a box similar to the calendar-list” but there is nothing between the month view and the list of calendars. Help?

  23. Barklund Says:

    Amanda: I will do that soon :)

    Kalowski: Press the little blue “plus” icon

    Janette: you did install greasemonkey right? If you did and it was version .69, then it had a slight misconfiguration. You have to enable and disable it once to make auto-install work. You do that by clicking the little monkey (it is a monkey!) on the lower right corner or the window twice. Then click the download link from userscripts.org.

    Rue: I will check if it still works. you can look in the Tools menu under Greasemonkey -> Manage to see, if you installed it correctly.

  24. Rue Says:

    Barklund –

    It does show up under “Manage User Scripts.

    Question, though – I am using google calendar hosted – the URL for my weekly page looks like this: http://www.google.com/calendar/hosted/asu.edu/render...
    Would the hosting part screw it up? I thought the script worked as long as http(s)://www.google.com/calendar was the first part….

  25. Barklund Says:

    It should, but the script uses the very specific structure of the html at google calendar to inject the todo list. And on this hosted page, some things might be different in the html, some attributes missing, some names changed. And if so, the script will not work.

    With “hosted” you mean “Google Apps for your Domain” or…? I think I have some domain in there, I can test via, if that is what you mean :)

  26. john Says:

    Hey great script- I like the simplicity of it, I can use it has a to do list or shopping list. My wish list- that some how the to do/ list items could be added to the day’s events so that my mobile phone could receive those updates- especially useful for grocery shopping lists. Any how thanks barklund.
    john

  27. m_s Says:

    is there any way that this could be linked to an os x ical to do list? that would be so great! i can’t find any online task management that offers bi-directional sync of to dos. oh, having that would have me in efficiency heaven at last!

  28. Rue Says:

    I guess so – the university through which I have my email has moved everyone to google apps. If you get a chance to test that would be terrific. (Google really should have a todo list in their own software, but that’s another thing entirely….)

  29. Will Says:

    Hey man, I encourage you to keep working with this todo list! It’s a fantastic add-on. Implement those ‘to-do to-dos’ and you’ll have a real winner. Thanks so much, in the meantime. Your list has helped me organize myself and my schedule.

  30. Fernando Cassia Says:

    Great work… but I have a question… Have you approached Google so that this functionality is implemented at the server side on Google?.

    It sounds quite silly to have to always patch up on the client side, and then have to fix the script when Google changes things and the script stops working.

    This kind of “To-do” list is something seriously needed as a standard GMail feature.

    I think the Google folks are reasonable people. So… have you approached them?. Chances are they’re not aware of every greasemonkey script on Earth…

    Best
    Fernando

  31. Barklund Says:

    Fernando, that is a reasonable question, and no, I have not contacted Google. But someone else discovered (can’t find the link), that in the current javascript there is something called Task completion which is currently “not yet implemented”. This indicates, that Google has this on their own todo-list.

    Besides, it has also been suggested by many others, e.g. in the Google Group for Google Calendar Users.

  32. JoBr Says:

    Oh man, this script is supernice.

    The only thing i do not like is the “add item” button, consider to make less ungainly.

    Happy coding to you :)

  33. Mike Says:

    Where are the to do items stored? Local or on the Google server?

    Great tool by the way. Thanks.

  34. Barklund Says:

    They are stored in the calendar. If you search for “todo” in GCal, you can see them all (stored on 1970-01-01).

  35. NKovats Says:

    I cannot this script to work with Firefox 2.0.0.11 and the latest Google Calendar as of todays date 20071214.

    Thanks.

  36. NKovats Says:

    Lets try proper English whilst at work!

    I cannot “get” this script to work with Firefox 2.0.0.11 and the latest Google Calendar as of todays date 20071214.

    Thanks.

  37. a Says:

    did not work for me. love the idea tho

  38. Devin Says:

    Hi,

    I just installed greasemonkey today and I have no programming experience so i consider it a small miracle that my computer didnt blow up:)

    I had no problem installing the script. But I dont see anything in my google calendar once the script is installed? Does anyone have a screen shot of what it is supposed to look like once the script is installed? I don’t think it is working for me. Using Firefox 2.0.0.11.

    Thanks …

  39. Jesse Says:

    I see a place to enter a friends calendar, can you explain how that works? I have entered a friends email address, but my to do list doesn’t appear to show up on their google calendar (they have GM and this script enabled).

    Many thanks.

  40. Rich Says:

    The field to add a friend’s calendar is a bug. It is irrelevant to the TO DO List.

    The “Add a Friend’s calendar” field is part of the calendar_div element aka “My Calendars”. (My Calendars is redundant; this functionality is in the Settings page.)

    I’ve never programmed javascript before but I tinkered a bit:

    If you hide calendar_div with:

    calendar_div.style.display = ‘none’;

    the stray field remains in todoBottomChrome.

    I also tried making another script to remove calendar_div element altogether via removeChild method. This works but throws an error (says firebug).

  41. L Says:

    I’m just wondering if it works with Firefox 3. I’m not seeing my TODO list in Firefox 3.

  42. Neal Says:

    My TODO list stopped working once I updated to Firefox 3.0. Will there be any patches for the new version of the browser?

  43. lhs Says:

    i loved it!
    and it worked fine in firefox 2.0.0.14 and 2.0.0.15
    but not anymore in FIREFOX 3
    and i do not understand why….

    really bad

  44. ALC Says:

    Hi, I’m a first timer and am excited about this script but seem to be having similar difficulties as some others are getting it running.
    I have successfully installed Greasemonkey 0.8.20080609.0 and activated your updated Todo list script – so I see it ticked when I right click the Greasy critters face, and see it enabled in ‘Manage User Scripts’ from the tool bar. But I can find no sign of it in my Google Calender.

    Please advise, thank you.

  45. ALC Says:

    Sorry, I forgot to mention that I’m running Firefox 2.0.0.16

    Thanks.

  46. Jocelyn Says:

    I’m having the same problem with Firefox 3. I’m not seeing any TODO list in my calendar at all!! Please help because I cannot WAIT to use this script!!

  47. krist0ph3r Says:

    haven’t read all the comments above, but if you want to create a toDo for use in gmail, you could create each items as a draft, and save it under a certain label (that’s used exclusively for todo items).

    if the script sets up the filter to look for a certain unique text in the item to mark the label, it would even work if you send the item to someone else via email!!! (you may need to do some juggling around to handle editing an item that has been sent to you though – something like deleting the original mail and creating a draft with the same content)

Leave a Reply