Another Auto Update Script

By sizzlemctwizzle Last update Feb 11, 2011 — Installed 15,480 times.

Does @require update the code when you do ?

in
Subscribe to Does @require update the code when you do ? 3 posts, 3 voices



Goozak Scriptwright
FirefoxWindows

Hello !

I'm wondering about the @require you want us to use to include your updater... If I understand correctly, this metadata key copies the referenced script locally on install and there is no way to update it afterward. This is why I would prefer to have the compress version - that way it can be updated if needed.

Anyway, thanks for your work ! :-)

 
JoeSimmons Scriptwright
FirefoxWindows

Sizzle, the latest code doesn't seem to be working. I @require'd your code with the right ID, and kept the scr_meta var and changed my version to 1.0.7 while the online version at time of require was 1.0.8 and did the "Check For Updates" userscript command, and it says no updates.

 
sizzlemctwizzle Script's Author
FirefoxMacintosh

JoeSimmons wrote:
and kept the scr_meta var

The @require script doesn't listen to the scr_meta. When you @require'd the code you got a copy of my updater that had the 1.0.8 version number stored. So when it checked for updates it saw 1.0.8 on your computer and 1.0.8 on the server. I guess I should add an option to use E4X metadata on with the @require.

@Goozak, yeah I'll compress the script again since you asked.

Edit: http://userscripts.org/topics/34594

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel