afuna_archive: (what does this button do)
afuna_archive ([personal profile] afuna_archive) wrote2007-11-09 01:06 am

Greasemonkey API for Gmail

Google recently published an API for Greasemonkey scripts. I haven't had a chance to test it yet, or to even look closely, but if it's possible to use it to easily access and edit content in a message, that would be perfect.

(And even if it isn't, just the concept excites pleases me very much.)

Update:
Yes, it is possible, because I've just managed to add in a userpic input field for LJ comment notifications. It took me longer to figure out how to get the script to load in Greasemonkey, than it took to figure out the logic to add in the input textbox. I should have scrolled down -- there's a sample script on the API page which explains that you have to add an onload event listener.

Still not done, as I'm too lazy to do the three items on the todo list for the script:

// TODO: make it a dropdown (Can use this and then store it, I suppose)
// TODO: check that it *is* a comment notification ;-0
// need to add something for when a message is expanded, if it's possible via the API

But I now have a fair grasp of the way around the API. Want to play with it so badly, but I need to sleep because I promised myself I would get that student's license by tomorrow.
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2007-11-08 07:43 pm (UTC)(link)
Must also remmember to shift the positioning of the userpic input thingy. Tireeed. Brain reverting to baby mode. Where is the edit button on the entry???
aveleh: Close up picture of a vibrantly coloured lime (Default)

[personal profile] aveleh 2008-03-24 06:05 pm (UTC)(link)
did you ever end up doing anything with this?
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2008-03-25 05:17 am (UTC)(link)
No D:

Any suggestions? :-)
aveleh: Close up picture of a vibrantly coloured lime (Default)

[personal profile] aveleh 2008-03-25 05:18 am (UTC)(link)
Not now, no. Just curious.
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2008-03-25 05:20 am (UTC)(link)
If you have any, you know where to go <3