[Greasemonkey] API brainstorming: GM services?

Julien Couvreur julien.couvreur at gmail.com
Wed Sep 21 10:15:40 EDT 2005


Hi,

Last week I was trying to think about some core APIs that GM could
provide in the future that would allow implementing cool new stuff.
Although this idea isn't exactly an API, I'd like to discuss it around
before posting it to the wiki.


One limitation I see with GM script is that they keep restarting. Of
course, there is GM_getValue and GM_setValue to store some state, but
there is no way of keeping initialized objects in memory between
pages.

The idea is to create the concept of "user services". They would be
available to user scripts.
Some more brainstorming would be needed to figure out how these things
are installed and started.


One of the proposed APIs on the wiki is GM_telnet. I like it. But it
would benefit greatly from being able to persist connections accross
pages...

What do you think?

Cheers,
Julien


More information about the Greasemonkey mailing list