Script Summary: Check for updates for your userscript
Version: 0.7.0
The script is an enhancement from "Script Version Checker" by littlespark http://userscripts.org/scripts/show/41075
Can also be accessed from my "USP Userscripts show preferences" http://userscripts.org/scripts/show/45988
Version 0.5.0 copes with the new ad on userscripts.org source page
Version 0.6.0 encapsulates the three helper functions
Version 0.7.0 bugfix
Description
Copy the SVC object to your userscript and change SVC.currentVersion to your scripts @version tag, SVC.scriptName to your userscripts name (doesn't have to match the "real" script name) and SVC.scriptNum to its script id on userscripts.org.Then call SVC.versionInfo.autoChecking();
The script uses the script id to contact the source page on userscripts.org once a day. When there is an update for your script, the user will be informed about that. If he decides not to install the update, he will not be informed about the same update for 14 days.
Reset script for testing
For testing this script it is often needed to reset the scripts preference values. For this you need to call about:config and search for the preference valuesgreasemonkey.scriptvals.[YourNamespace]/[YourScriptName].latest
greasemonkey.scriptvals.[YourNamespace]/[YourScriptName].lastChecked
greasemonkey.scriptvals.[YourNamespace]/[YourScriptName].notified
Right click on each of them and select "Reset"



