Another Auto Update Script

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

Easiest way to test?

in
Subscribe to Easiest way to test? 2 posts, 2 voices



Cod3r Scriptwright
FirefoxWindows

I am slightly paranoid, so after installing the script I edited my version++ on userscripts and went to my browser to test if the update script will detect the change. Nothing happened in the last 12 hours.

I am using

days: 1, // Days to wait between update checks

I understand this is because it checks every day and not every time I open my script in greasemonkey. But is there a simple way to test it without interfering with the code and without having to wait 24 hours?

 
sizzlemctwizzle Script's Author
FirefoxMacintosh

Why are you using the manually included version? Why don't you use the @require? Here are instructions on how to use.

I wrote this stuff below on how to test the @require version before I looked at your script and realized you weren't using that version. I suggest you use the @require and read this if you are still paranoid.
okay the reason why it didn't detect the change is because the version number is stored locally in the updater.php script, not your script. you can modify the updater.php script on your computer to verify it does check and alert you when there is an updater. Try something like this:

var AutoUpdater_49366 = {
 id: 49366,
 days: 0.042, // check every hour
 name: 'YouTube Auto Buffer & Auto HD & Remove Ads',
 version: '1.2.3', // change this to a lower value

I've tested the crap out of the code. I've used it for at least two years in all of my scripts and whenever I make an update I can see the sharp increase in the number of installs as my users update after the script notifies them. You can even set days to zero to check on every page load for testing purposes.

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