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

Henrik Nyh henrik at nyh.se
Fri Sep 22 19:58:48 EDT 2006


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.

Right. When a script is installed, its metadata (@name, @namespace, 
@description, @includes, @excludes, filename) are stored in the GM 
config.xml file. Changes to the script file do not update this metadata.

It would certainly be nice if the extension developers would change this 
behaviour.

 > Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20060921

Too bad you're not using Mac OS X; I've written a TextMate command to 
update the stored metadata from the script file: 
http://henrik.nyh.se/2006/08/31/improved-greasemonkey-bundle-for-textmate/ 
The command could be associated with Cmd+S and made to save the file as 
a side-effect, which means you could save the file as well as update the 
stored metadata when hitting that keycut.

-- 
Henrik Nyh
http://henrik.nyh.se


More information about the Greasemonkey mailing list