easy userscript updater snippet

By thomd Last update May 11, 2010 — Installed 307 times.


Script Summary: copy-paste this updater script snippet at the end of your userscript file hosted on userscripts.org. Your script is now displaying update notifications the next time you upload a new version of your script.

Version: 1.0.2

Script homepage

Usage:

Do not just install this script!
Use it as a snippet and copy-paste it in your own userscript!

Instructions:
  1. Copy and paste the script snippet at the end of your userscript file.
  2. Set at least script-id (from userscripts.org) and current script version as options in init function.
  3. You may optional overwrite the checkInterval, injectInto and updaterCss option.
  4. You may optional define additional (non standard) userscript-meta tags @change or @depricated in your script.

  5. Now update currentVerson in the init function every time you update/upload your script


For more detailed information see comments within the userscript or README on Github!




Changelog

2009-01-29 - 0.1   - created
2009-03-09 - 0.2   - rewritten and implemented with module pattern
2009-03-10 - 0.3   - included change-message
2009-03-24 - 0.4   - included deprication-message
2009-03-25 - 1.0   - first final release
2009-03-27 - 1.0.1 - minor fixes
2010-05-11 - 1.0.2 - changed url for script-updater-check and increased check interval 
                     to limit unnecessary server load on userscripts.org