34 points
The Basics
The number one goal of my @require updater is to keep things super simple and not much explanation is needed, but here are the basics. To @require my script place this in the header of your script:// @require http://update.sizzlemctwizzle.com/your script id.jsThat is all you need to make sure your users get notified when there is an update available. If @version isn't present in your metadata, the version number Userscripts.org assigns your script automatically every time you upload a new version will be used for update checking.
Extras
Some optional query values you can set:days- obviously sets the number of days to wait between update checks.
Example:// @require http://update.sizzlemctwizzle.com/your script id.js?days=7
uso- a flag that forces the Userscripts.org version number to be used for update checking even when an @version value is present in your metadata.
Example:// @require http://update.sizzlemctwizzle.com/your script id.js?uso
meta- set this flag to a variable used to store wrapped metadata. Users of my old updater will be familiar with this method. It allows my updater to use the metadata present in your script rather than the metadata obtained from Userscripts.org at the time of install. You wrap your own script metadata using E4X like this:var scr_meta=<><![CDATA[ // Make sure to copy this line right above the script metadata // ==UserScript== // @name Another Auto Update Script // @namespace sizzlemctwizzle // @description Include the code in your user scripts so they check for updates automatically // @version 1.1.7 // @include * // ==/UserScript== ]]></>.toString(); // Make sure to copy this line right below
Example:// @require http://update.sizzlemctwizzle.com/your script id.js?meta=name of metadata variable
show- a flag that sends a user to the script's description page when they are notified of an update to the script. The default behavior is a prompt to install the latest version.
Example:// @require http://update.sizzlemctwizzle.com/your script id.js?show
var- by default this value is set to your script id. It is used to provide a unique name for the variable name of your updater object and the name used to save the date of the last update check.
Example:// @require http://update.sizzlemctwizzle.com/your script id.js?var=some string
Hosting
Since sizzlemctwizzle.com runs on an old Pentium 4 in my basement (lighttpd + FastCGI + PHP5), you may want to host the updater yourself. The updater source is open and under public domain. If you're using lighttpd and want my rewrite rules, just ask.Browser Compatibility
If you install a script with my updater in Google Chrome or GreaseKit, it should be ignored and not cause any errors. If you install my updater in either NinjaKit or Tampermonkey I can't assure you that it won't break your script. Both extensions have been banned from using my updater because they improperly implement@require which causes too much traffic.
login to vote
About time you made it here! :) Just some suggestions:
I'll give a thumbs up of course. :)You might want to explainvarfor the masses even if it's just something simple.Remember what I said about wrapping someones metadata automatically.test link 1 and test link 2
Last checked comment
login to vote
2009
November: 40,683
December: 88,573
2010
January: 126,934
February: 177,662
March: 274,629
April: 271,234
May: 261,654
June: 216,138
July: 208,726
August: 290,079
September: 391,831
October: 567,199
November: 822,791
December: 1,105,468
2011
January: 1,106,107
February: 2,090,173
March: 2,601,287
April: 2,935,396
login to vote
Hey... Is there anyway you can add an Extras option to bring the checker to the ScriptWrights homepage, so I can include your updater in installWith, rather than just installing the script directly?
login to vote
I'll add that option.Done.login to vote
Very nice! :) Thank you!
login to vote
It's awesome!!
But, please explain more about optional query, 'meta' with more actual example.
I don't know how to use actually.
login to vote
There you go DongHaeRang, sorry about the lack of clarity.
login to vote
USOs https Security Certificate expired today... so this will in effect kill all secure updaters... and possibly hinder installation of new scripts. See example .
Appears to be resolved as of ~19:22 EST hours
login to vote
oops just found this pge after trying to get edited script up
login to vote
Domain expired...
Updater source:
http://web.archive.org/web/20101030021849/http:...
login to vote
sizzlemctwizzle.com is back, unfortunately PHP isn't atm
Edit: Got PHP working
login to vote
login to vote
I hadn't installed Firefox on the new (to me) box the web server is running on.
login to vote
Since I'm forced to use a non-standard port for web traffic, I figured I'd give the updater it's very own subdomain to make things a little simpler.
I've been told Scriptish doesn't support redirects in
if you care about supporting that, which is cleaner and the real reason behind this recent change.@require. You can useEverything is just redirect/rewrite magic, so any way you used the updater in the past should still work.