Thank you Jarett :)
I coming here after 2 or 3 years delay.
But no one said anything about my script, to be correct, in the part of using your script in my script also :)
I think it isn't bad result.
Have a nice day!
I have add your script to mine and it seems to work very well :
it works perfectly !
i am using this snippet at http://userscripts.org./scripts/show/79617
thanks a lot !
I have been looking into this solution myself (and was definitely prepared to code my own solution!). This is a very useful looking mechanism and will no doubt save me a significant chunk of development time!
Will be used at http://userscripts.org/scripts/show/64902
Changing the timestamp manually every time you want to update your script is both tedious and pointless. It would be better to use a version number to be clearer. Now you use the uso:version but what if a user doesn't use the script immediately after installing? Then the author releases a new version and then the user uses the script and the latest version is recorded and there is no prompt to update eventhough the user has an older version installed. Also the script actually parses the source page, not the source directly, which carries a large over-head. It would be better to use .user.js?format=txt or preferably .meta.js
This is an excellent script for people who write GreaseMonkey scripts. When included in a GreaseMonkey script, it enables the script to automatically check userscripts.org for updated versions of the script. If the script has been updated the user is notified and asked if they want to update their copy to the new version. If they click yes they are taken to the script's homepage where they can easily install the new script.
All script authors should take advantage of this because it's so easy! All you have to do is copy and paste a few lines of code and tweak a couple of variable settings containing your script ID and version number. The whole thing only takes a minute or two and then you've got an auto-updating script. VERY COOL!