BD wrote: > <snip> > > It's pretty stupid that there isn't a global variable space that can > be used for purposes like this. (afaik -- some of us asked for stuff > like that over and over and I don't think it was ever done) Sure there > is a "security" issue, but so what. We're not performing brain science > or rocket surgery here, so people need to get past that. Sometimes you > just need to pass information around to perform some little task that > is cool or needed or whatever. If someone potentially messing with > that data will cause your head to explode, then you shouldn't be doing > that in a GmScript. It's pretty much a no-brainer. Just name the > global variable space "Caveat Emptor" and be done with it. (and give > some of us the functionality and features and such that we would like > and need) I use prefs. That works reasonably well, although I'll admit it is hacky. That is, if you need to pass data between instances of a script, just shove the data into GM_setValue and extract it on the other side with GM_getValue. If you need to pass data between /running/ instances, I expect a polling mechanism would do the job well enough.
Obviously, this won't work if you need to pass data between /different/ scripts. Too bad. > <snip> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en -~----------~----~----~----~------~----~------~--~---
