Script Version Checker

By littlespark Last update Nov 7, 2009 — Installed 181 times. Daily Installs: 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 18, 7, 4, 1, 4, 3, 11, 3, 3, 0, 1, 0, 1, 0, 1
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.

start the discussion

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.
    User checking manually

      To test manual feature, go to Tools -> Greasemonkey ->
        User Script Commands -> Script Version Checker (Check Latest Version)

      HOW TO USE?

      (manual also found in script itself)

        REQUIRES
        * * * * * * *
        Either:
        1. Any non-space version reference placed at the metadata block in the script itself OR
        2. Any non-space version reference placed at the end of the title on the uso download page

        THE SETUP
        * * * * * * * *
        1. - 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"

        2. Copy the whole of var SVC = { }; to the targeted script
        3. Update the 3 variables currentVersion, scriptName and scripNum in the code

        TO USE
        * * * * *
        1. 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.
        2. For manual checking by user, include this... SVC.versionInfo.manualChecking

        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.