AEG Userscript AutoUpdater

By ArmEagle Last update Jul 2, 2010 — Installed 78,133 times.


Script Summary: Userscript autoupdater requiring GreaseMonkey and is thus Firefox specific, unfortunately.

Version: 1.1

Do NOT install directly!

This userscript autoupdater script requires the GreaseMonkey @require and @resource parameters and uses the meta information of your script as provided by userscripts.org.

This script also requires some of the special GreaseMonkey functions. So this is a Firefox specific update script. In my opinion you cannot trust cookies/storage not to be reset by the user/privacy mode. I guess one could just disable update checking when cookies don't 'work'. But it's a bit tricky. But it also uses GreaseMonkey for downloading data and for its context menu (to reset the timestamp so you can force an early update test).

Please leave a comment with whatever your think about it, thanks.

To use AEG Userscript AutoUpdater for your script all you need to do is setting the following lines in the ==UserScript== parameters:

// @require        http://userscripts.org/scripts/source/75442.user.js
// @resource  meta http://userscripts.org/scripts/source/YOUR_SCRIPT_ID.meta.js

The first to include this updater script, and the second to link to the meta file of your own userscript, used to grab the automatic version number userscript.org creates for every update.

Several settings can be added to the @resource meta URL ( http://userscripts.org/scripts/source/[YOUR_SCR... ):
- interval (integer, default: 5, minimum: 1) : Change the interval (days) how often will be checked for a new version.
- show (no parameter) : By default the script will just give an installation popup. Add this parameter
to link to the script page instead.

With every update of your own script the latest version of this updater script will be downloaded again.

Adds an entry to the GreaseMonkey tray icon that resets the update check timestamps.

Released according to Creative Commons Attribution-Noncommercial-Share Alike : http://creativecommons.org/licenses/by-nc-sa/3.0/