[Greasemonkey] Changing @include in script file has no effect

Dave Land land at aol.com
Sat Sep 23 01:14:14 EDT 2006


On Sep 21, 2006, at 9:54 PM, Gary Tyler wrote:

> I can only change the url a script points to from the GM Manage  
> window.
> Changing it from the script file has no effect when reloading the  
> page,
> unless maybe I restart the browser.

That's right, Gary, and here's why:

The script file's @include declarations are only consulted when a new
script is added to Greasemonkey. At that time, those declarations are
copied into [your_profile]/gm_scripts/config.xml.

 From then on, the file's includes are never consulted -- GM relies
solely on config.xml, which is maintained through the GM Manage window,
as you note.

I have been caught on this one plenty of times. I'm guessing that it
would be a performance hit to scramble through all the loaded script
files looking for new @includes for every page load.

Dave
  


More information about the Greasemonkey mailing list