2 posts tagged “todoist”
As I hinted in the update in my last post, I discovered a very nice addition to Gmail 2.0 which allows for much better Greasemonkey integration, meaning it's possible for me to update the script.
There are now two different versions, one for Firefox and one for Safari*. The one for Firefox will work with both Gmail 1.0 and Gmail 2.0. However, the one for Safari will unfortunately only work with Gmail 1.0 as the integration point isn't exposed in Safari.
I'll work on better integration (rather than a popup window) sometime later this week. However now I really need to sleep.
* Why two different scripts rather than checking for the presence of the API? It comes down to the differences between the implimentation of Greasemonkey. Greasemonkey uses unsafeWindow whereas Greasekit and Opera use window.
A while ago I wrote a plugin for Firefox that added a link to gmail enabling you to easily delegate emails to Todoist. Unfortunately the update of Gmail to 2.0 broke the plugin. Fortunately you can still use the old interface, and I suspect that's what a few people have been doing.
I've looked a few times into how to update it but I could never get the new interfact (turns out it doesn't work with English (U.K.)). Finally today I got it working but there is a bit problem. Gmail 2.0 preloads the messages, making it quicker to view messages but there is also now no request when you view an email, which the plugin relied upon to know when an email was being looked at and hence to inject the button.
It's probably possible to do some fancy injecting, function overriding or specific browser plugin tricks. However, all of those are beyond my immediate capabilities and I would have to either trawl through and understand Gmails compressed code or learn a heck of a lot more about plugins.
As an apology, here is a greasemonkey script which does what the old code did (minus the greybox stuff, which I'll probably add sometime soon). It can be used with Firefox's Greasemonkey plugin, Safari's Greasekit plugin or Opera 8's user scripting functionality (It probably works with some IE plugin, but I can't find or get one to work).
Update: I just discovered Google have release an experimental API. It now works with Gmail 2.0 in Firefox.
