Google+ Enhancer

By senseBOP Last update Jul 11, 2011 — Installed 29,645 times.

calendar count?

in
Subscribe to calendar count? 7 posts, 3 voices



dj.bang User
FirefoxWindows

What does the calendar count display?
How to clear it / determine which item is unread?

 
senseBOP Script's Author
FirefoxWindows

The calendar count shows you how many events you have that are happening today. It can't really be "cleared" (without removing an event, obviously).
I'd love changing it so that it shows you events that are happening in the rest of the day (events that are "today", but past "now"), but that would require knowing what timezone you're on, and that is not something that I can access easily from within a userscript. Hopefully, once I finish converting the script into an extension, that will change.

 
dj.bang User
FirefoxWindows

Can the counter be disabled somehow?
Which portion of code is to remove ^^?

 
senseBOP Script's Author
FirefoxWindows

You will have to modify the _updateCountBox() method.

Something like this might work:

_updateCountBox: function (id, count, color, background) {
		$(id).fadeOut(400, function() {
			if (count > 0) $(this).html(count).css({'color': color, 'background-color': background}).fadeIn(300);
		});
	}

Note: This is untested, but it _should_ work as-is.

 
USBman User
FirefoxWindows

What about adding the ability to count events other than just the user's default "calendar?" This would be tremendously useful, as it can be misleading to see an incorrectly low count when you have events upcoming on other "calendars."

 
senseBOP Script's Author
FirefoxWindows

Calendars on Google Calendar are poorly implemented. Working with the API is even worse. That said, it IS on my to-do list, so it will be possible at some point. IF they had a "today" feed available via API, that would save a ton of time for developers such as myself, but sadly that is not the case.

 
USBman User
FirefoxWindows

Hmm... that's too bad, but I'm not surprised. Bummer!

Thanks, though, and keep up the GREAT work!