|
Script Summary:
This script does nothing - yet. |
this script has 2 topics, 7 posts |
This script has no reviews. |
IMPORTANT: THIS SCRIPT DOES NOT WORK.
It is here only as a placeholder. There is a Firefox version available, but Opera appears to have too many limitations in its user scripting facility to get this to work properly - and I have very little free time lately, so anyone who wants to hack at this is welcome to do so.
This script is intended as a template; if and when I get it to work in Opera, if you follow these instructions, and include the code from this script in your own scripts, your scripts will periodically (at an interval configured by the user, or, if not configured, specified as a default within the script) connect to one or more predefined locations, looking for more recent versions of itself; and, if one is found, it will offer to redirect the user to the new version's location, thereby allowing the user to save and install it. (Unlike Greasemonkey, Opera has no automated user script installer.)
IMPROVED(?): Instead of putting tons of messages in the Error Console, bugging you about updates with every new site you visit, and (if you have that stupid aa-gm-functions script installed) permanently obscuring the upper right corner of the page, this version merely(!) fails silently.
The design goals for this were to create a self-updater routine that:
works in Firefox 3. (That was by far the easy part.)
is more compact and less complex than the User Script Updates script. (I'm not sure I succeeded on that second point, but this script is half the size of that one - and half of this one is this documentation!)
is self-contained, i.e., doesn't require the installation of a second script to get the updating functionality. (Opera developers seem to find this acceptable; I do not.)
leverages the existing method of specifying script metadata, as opposed to requiring that such data be duplicated in a JavaScript object. (Unfortunately, this is one of the many things that is proving to be impossible in Opera.)
If you do use this within your own script, I would appreciate knowing about it, so I can link to your script here.





