Instead of Copy'n'paste...
|
|
...you can just include it with the Metadata using @require - I just tested, and it works. But for this there are some little changes to the script required:
Thanx so far - and I hope you find this input useful. There are some clear advantages for the @require method:
All the best,
|
|
|
Well, thanks for your post. In fact, I initially wanted to do so, but the @require meta has some limitation which is making this idea not so efficient.As said on Greasespot wiki the @required script is installed once only at first parent install : updating the parent script will not cause the @required script to be refreshed. So users will have to uninstall and reinstall parent in order to have the whole up-to-date. However, when I have a second for it, i'll try to enable a version that could be easier to @require...cheers, Sylvain |
|
|
Thank you for your answer - that in fact explains something (in a different issue as well, which I had with another script). I wish you good luck meanwhile, and look forward to your success (I monitor this thread, so if you update it here I will see). All the best,
|
|
|
Hi Izzy,
at the end, I managed to find a way to make the @require method work without killing the copy-paste method. Still a bit experimental, but I made it work on this testing script. best regards, Sylvain |
|
|
Comes the question: Is there a way to handle the @require script update? I mean, if there's a new version of that script, to grab it and replace it into the main scripts folder - together with or even independent from the main script? |
|
|
I thinks it's a bit tricky for me and I didn't want to explore Greasemonkey guts too far. I have been thinking about it before updating and may have a softer solution (I'm not a hard coder, I code for fun). But as I prefer to conform to the release early, release often moto, I didn't implement it yet. The idea would be to increment a verification for the @required script during the main script verification and display an additional message to the user suggesting him to uninstall and reinstall his script like "additionaly, the update control script used by this one was also updated, you should uninstall completely your script and reinstall it to take full advantage of this upgrade".
|
|
|
Hi Sylvain, Sylvain Comte wrote: These are all facts I understand very well - since they apply to me, too ![]() The idea would be to increment a verification for the
That would be a beginning. But if it's possible to automate this (i.e. download the control script, or any other updated @required script along plus store it/them in the main scripts directory), that would be the final solution. Not sure if it's possible, but maybe you can add it to the wish list? Au revoir,
|
|
|
Just a thought - not sure if that's possible: GM itself must have a function to remove a script (which is used in the manager). Maybe this function could be utilized in case a dependency needs to be updated - so asking the user to confirm the scripts removal (of course without removing any stored preferences of that script), remove it (if approved), and then trigger the install? |
|
|
Sylvain, just to let you know: I meanwhile created my own updater script, which also takes care for the dependencies announced by |
