On Sat, Oct 3, 2009 at 12:39 AM, kb <[email protected]> wrote: > > I have a few scripts that need to call a common function. I would > like to define it in a separate file that gets included where needed. > The @require isn't going to work because the common function needs to > be changed periodically and I don't want to reinstall all the scripts > to pick up the change.
Host it somewhere as plain text JSON. In each of your scripts that will use it, use GM_xmlhttpRequest to retrieve the JSON file, and eval() it to a function. There's probably a better solution, as that would potentially eat lots of bandwidth. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
