There's an easier and better way to (re)install a GM script: navigate to the .user.js file on e.g. http://localhost/path/to/script.user.js This will prompt for installation of the script, download @require resources, and so forth. So I suggest you copy your primary user script into a directory for Apache to serve, then navigate to its path there. But you're right, GM's New User Script command should allow you to include e.g. @require, @resource. Maybe add a generalizable section to it?
As far as reconstructing your config.xml: do you have backups from before your edits? If not, you'll probably be best off deleting or otherwise resetting it, then re-installing all the user scripts you had. M Gozler wrote: > Gordon Pettey wrote: > >> Give them a real URL. Edit your hosts file >> (\windows\system32\drivers\etc\hosts) to point something like >> gozlergmrequires.com to 127.0.0.1, or get a DynDNS account, and try >> with the @require line using the .com domain. Also, note that you must >> re-install the script to make it load @require lines. Changing the >> @require lines in an already installed script (in FIrefox profiles >> directory) will have no effect. >> > > Your comment about 're-install' prompted me to find this: > > Caveats > > Changing the metadata of an installed script does not do > anything, > as this data is only accessed during installation. The script > must be re-installed for these changes to take. Alternatively, > config.xml can be modified manually. > > http://wiki.greasespot.net/Metadata_block#Caveats > > The installlation user interface on Windows Vista GM however (New User > Script command) only provides for the @name, @namespace, @description, > @include, and @exclude metadata, not the @required. > > This means that 'config.xml' apparently must be modified directly, as > the only way of specifying @require. > > So I followed the template at url=http://wiki.greasespot.net/ > Config.xml. > > At first, I put <Require filename="http://localhost/req1.js/> for the > '@include http://localhost/*.html'. I also put <Require > filename="file:///c:/include/req1.js/> for the other *.user.js which > has metadata '@include file://*.html'. That did not work. > > Then I assumed that the files must be present already in the same > directory as the *.user.js and eliminated the parts before 'req1.js', > and copied all the required files. That did not work. > > Then I assumed that Firefox needs to be re-started, assuming it is > part of GM initialization. That did not work. When I went to "Manage > User Scripts...", all scripts known to GM had disappeared completely. > So now I have another thing to figure out. > > > > ____________________________________________________________________________________ > Beautiful Sterling Silver Jewellery > and Accessories. > http://click.lavabit.com/?pub=78&ad=19&url=aHR0cDovL3d3dy5kaW5ramV3ZWxsZXJ5LmNvbS8/dXRtX3NvdXJjZT1CcmFuY2hyJnV0bV9tZWRpdW09Y3BjJnV0bV9jb250ZW50PXRleHQmdXRtX2NhbXBhaWduPUJyYW5jaHIlMkJDYW1wYWlnbg== > ____________________________________________________________________________________ > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to greasemonkey-users@googlegroups.com To unsubscribe from this group, send email to greasemonkey-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en -~----------~----~----~----~------~----~------~--~---