Another Auto Update Script

By sizzlemctwizzle Last update Feb 11, 2011 — Installed 19,002 times.

A little help?

in
Subscribe to A little help? 33 posts, 4 voices



Swashata Scriptwright

Now I have made the changes! Can you pleaseee check now :)

http://userscripts.org/scripts/review/41115

 
Swashata Scriptwright

Also can you tell me whether it gets updated automatically or does it prompt for update!! If prompts then in which manner :)

Also from the source of this script [http://userscripts.org/scripts/review/24464] of yours I found that you have set the id 38017 where as the Id of the script is 24464 !! Can you please tell me whether I am wrong! :)

 
sizzlemctwizzle Script's Author

Your code is correct now, however I suggest putting the update code at the bottom in future release to keep it out of the way of your code. You did the right thing by replacing my script id number with your's. If you want to see how the script prompts the user to update then change the version of the script on your computer and leave the one on userscripts.org the same. Next go to the "User Script Commands..." submenu and select "Check Blakut Moderation Script by Swashata For Updates" and you will be prompted to update just like a user would when you updated you script on userscripts.org

 
Swashata Scriptwright

Thanks a lot man!! I will add your update script in all our scripts! and also will publish it in our blog! Again thanks a lot for your help! :)

 
Swashata Scriptwright

I have tested and it has worked! Thanks again

 
zicmama Scriptwright

I paste your auto update script at bottom of mine...
Last.fm links are still working, I am not sure about update,
could you have a look at it?
http://userscripts.org/scripts/review/40058

 
sizzlemctwizzle Script's Author

You need to surround your userscript header like this:

scr_meta=<><![CDATA[// 
==UserScript==
// @name           Zicmama + Last.fm
// @namespace      http://www.zicmama.com/
// @description    Inserts Zicmama search links on Last.fm. Then copy your favorite artist album on your ZicDisk!!
// @include        http://last.fm/*
// @include        http://*.last.fm/*
// @include        http://lastfm.*/*
// @include        http://*.lastfm.*/*
// ==/UserScript==
]]></>;

 
Swashata Scriptwright

I was thinking that what will happen when I change the name of my script!

As when newer version is available then this script opens a new tab for that and GM replaces the old script with the newer version! But if the name if the newer version is different then will it delete the previous script!! Also will it be possible to update a script which is not listed by Userscript! coz in those cases each time a unique code is generated for installation!! :/