|
Script Summary:
For use by the greasemonkey scripts developer to notify users automatically and/or manually of any script version changes found in userscript.org. Integrate into any scripts. Uses version referencing. |
This script has no discussions. |
This script has no reviews. |
- Version 0.2.0 frees the necessity of having the version placed within (and only) at the title field. By making use of metadata block, version information can now be put at the summary/description section to inform users of the latest. Even so, the script will still work if only the title field is used.
TESTING OUT THE CODES
- Auto Notification
- After installation, the auto feature will send out its first
notification message if the version doesn't match.
~ Have set the version in the script as 0.1.9 as a test of how this works.
- To test manual feature, go to Tools -> Greasemonkey ->
- User Script Commands -> Script Version Checker (Check Latest Version)
- Any non-space version reference placed at the metadata block in the script itself OR
- Any non-space version reference placed at the end of the title on the uso download page
- Copy the whole of var SVC = { }; to the targeted script
- Update the 3 variables currentVersion, scriptName and scripNum in the code
- For auto notification, include this... SVC.versionInfo.autoChecking();
- The codes will compare the working copy with source once a day till a newer version of the script is found.
- Once a version is found and the user have yet to download the latest, these codes will then compare the working copy with source every 14 days.
- For manual checking by user, include this... SVC.versionInfo.manualChecking
HOW TO USE?
(manual also found in script itself)- REQUIRES
* * * * * * *
Either:
THE SETUP
* * * * * * * *
-
- To use metadata block, use the line: // @svc:version [x.x.x]. Example "// @svc:version [0.2.0]"
- To use uso download page, use the title field. Example "Script Version Checker 0.2.0"
TO USE
* * * * *
HOW IT WORKS
* * * * * * * * * * *
The script will verify with the metadata block first. If no such metadata block is found, it will then check the title at the uso download page.





