Script Summary: <b>*DO NOT INSTALL THIS SCRIPT, DO COPY & PASTE IN YOUR OWN SCRIPT*</b><br> Use this code in your script to add weekly update checks and manual update.<br> <b>Update</b> : lastupdatecheck.getTime(), fixed. (Line 40)
This code is used in my Video Focus script to check if a new version is available either weekly or manually by the user.
How to use :
1. Copy & Paste the source into your own userscript.
2. Call CheckForUpdate() wherever in your script to verify if the time has come to look for a new version.
3. Don't forget to set these variables according to your own script :
var script_title = "Video Focus";
var source_location = "http://userscripts.org/scripts/source/19701.user.js";
var current_version = "1.0.4";
var gm_updateparam = "videofocus_lastupdatecheck";
GM_registerMenuCommand("VF->Force Update", CheckVersion);
4. A text document (in this case located on Google Docs) is used to store the latest version number,
do not forget to change that variable as well to reflect where your version holder file is located.
var version_holder = "http://docs.google.com/RawDocContents?docID=df8kjzj6_0fxs3wsfp&ju
Content example of the version holder file : "version=1.0.4" (without quotation marks)



