[Greasemonkey] Updating a modified script

Aaron Boodman zboogs at gmail.com
Mon Jan 3 17:21:01 EST 2005


You can put a note about your extension here, but it's probably better
on the mozdev forums since I don't think many people read this list.

As far as updating your scripts, what I do (during development) is to
modify the copy of the script that mozilla actually uses. that way you
can make changes, refresh, and see them immediately.

This file is located in something like {firefox profile
dir}\chrome\extensions\{ec8030f7-c20a-464f-9b0e-13a3a9e97384}\scripts\

I think the actual path is way longer, but thats the jist of it. Once
you find the root of the greasemonkey extension, just go into the
scripts directory from there. The scripts have numeric IDs, not names,
so you can either check config.xml (in the same directory) or just
open each of them to find yours.

Once you find it, you can edit it at that location and refresh your
browser to see changes. Once you're satisfied, update the original
file and rebuild your installer.

Sorry I haven't put these directions anywhere public yet. I agree that
"update user script" would be a useful feature and would make this
process much simpler.


On Sun, 02 Jan 2005 00:08:15 -0800, Bill Donnelly
<donnelly at snowcrest.net> wrote:
> I was wondering how you update a script when it has been modified.
> 
> As far as I can tell, you have to either uninstall it and reinstall it,
> or (re)install the new version over the current version.
> 
> What is the preferred method here?
> 
> Also, it would be nice to remember where the original source file
> was installed from, and then have an "Update" button.
> Something like that. (and show that filepath under an Info item through
> a button or right-click context menu item --- and maybe a View/Edit Source?
> -- with a specifiable pathname to an editor of choice to use, maybe
> supporting
> a %1 value as the filename to view/edit for those editors that need that to
> pass the filename into the program)
> 
> And, are we supposed to offer scripts to members/users on this mail-list?
> 
> 
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
> 
> 
>


More information about the Greasemonkey mailing list