<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>There's one possibility that I can think of, but I don't know enough about how GM itself works with the scripts, and I'd appreciate it if someone could answer these questions:
IF 
1. you can control the order of execution of scripts, and
2. scripts are executed such that they share the same namespace
THEN
it should be possible to have a library script execute first (controlling order of execution) and then any functions listed there should be available to any later scripts (via shared namespace). 

That said, it's probably a very bad idea to assume that any given user has a given script installed, so you should probably just have a comment block and then your library functions all in the same script, so that you can be sure you have what you need, but it is kept out of the way.

-Joel</body>
  <body-html>&lt;p&gt;There's one possibility that I can think of, but I don't know enough about how GM itself works with the scripts, and I'd appreciate it if someone could answer these questions:
&lt;br /&gt;IF 
&lt;br /&gt;1. you can control the order of execution of scripts, and
&lt;br /&gt;2. scripts are executed such that they share the same namespace
&lt;br /&gt;THEN
&lt;br /&gt;it should be possible to have a library script execute first (controlling order of execution) and then any functions listed there should be available to any later scripts (via shared namespace). &lt;/p&gt;

&lt;p&gt;That said, it's probably a very bad idea to assume that any given user has a given script installed, so you should probably just have a comment block and then your library functions all in the same script, so that you can be sure you have what you need, but it is kept out of the way.&lt;/p&gt;

&lt;p&gt;-Joel&lt;/p&gt;</body-html>
  <created-at type="datetime">2007-05-22T01:28:02Z</created-at>
  <forumable-id type="integer">1</forumable-id>
  <forumable-type>Forum</forumable-type>
  <id type="integer">1955</id>
  <topic-id type="integer">499</topic-id>
  <updated-at type="datetime">2007-06-22T08:06:29Z</updated-at>
  <user-agent nil="true"></user-agent>
  <user-id type="integer">24068</user-id>
</post>
