Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Auto Update Checking Demo
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
sizzlemctwizzle  
View profile  
 More options Feb 16 2011, 10:40 pm
From: sizzlemctwizzle <medleym...@gmail.com>
Date: Wed, 16 Feb 2011 19:40:03 -0800 (PST)
Local: Wed, Feb 16 2011 10:40 pm
Subject: Auto Update Checking Demo
I've been slowly working on a branch for automatic update checking of
scripts for awhile now: https://github.com/sizzlemctwizzle/greasemonkey/compare/master...issu...
and I feel like I finally have something worth presenting to others.
Test this in a clean profile because I have no clue how unstable it
might be.

Here is a test build you can just install:
https://github.com/downloads/sizzlemctwizzle/greasemonkey/greasemonke...

Only script that have an update url stored are able to have automatic
update checking. Since upgrading to 0.9.0 any scripts that you have
installed had their install url saved(unless you installed it
locally). You can optionally override this by pointing to a url with
the @updateURL metakey in the script. For scripts that are capable of
update checking, basically there is a minimum number of days to wait
between update checks of a script, which is a preference you can
modify in the Greasemonkey preferences dialog. If this certain amount
of time passes after the last update check and the script is injected
into the page, then Greasemonkey will fetch the remote version number
and compare it to the version number stored locally. If the remote
number is greater, then the script will be marked that an update is
available. Scripts that have available updates can be seen by going to
the "Updates" tab in the addons manager. The will appear along-side
any extensions that have available updates. Here you can select which
scripts(or extensions) you'd like to update by clicking the checkbox
next to each script. Then you can install the updates of all the
selected scripts. Or you can individually install the updates via the
context menu. If you have any scripts with available updates at
startup, the addons manager will open automatically and display the
scripts that have updates. I think handling script updates just like
another type of extension makes a lot of sense, so this is what I'm
going for with the UI.

Obviously, none of this will work in Firefox 4 because of the
different UI, but I hope to start work on that as soon as this gets
more stable in Firefox 3(and greater). Please try out my build,
perhaps review by code(the changes in this branch are numerous), and
let me know what you think!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anthony Lieuallen  
View profile  
 More options Feb 17 2011, 9:16 am
From: Anthony Lieuallen <arant...@gmail.com>
Date: Thu, 17 Feb 2011 09:16:09 -0500
Local: Thurs, Feb 17 2011 9:16 am
Subject: Re: [greasemonkey-dev] Auto Update Checking Demo
On 02/16/11 22:40, sizzlemctwizzle wrote:

> Obviously, none of this will work in Firefox 4 because of the
> different UI

First, thanks for your work this is awesome.  But a pointer: In the
future, I think it would be wise to target FF4 first, not last, for new
features.  Pretty much the day it's released, FF3 support will be
significantly less important, and even if it never happens, nobody loses
anything, they just have to upgrade to get new features.

As is, I'd generally refuse to merge this simply because I don't want to
release this feature, then Firefox 4 comes out and everyone loses it.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik Vold  
View profile  
 More options Feb 17 2011, 10:35 am
From: Erik Vold <erikvv...@gmail.com>
Date: Thu, 17 Feb 2011 07:35:53 -0800
Local: Thurs, Feb 17 2011 10:35 am
Subject: Re: [greasemonkey-dev] Auto Update Checking Demo

I merged this branch into
Scriptish<https://addons.mozilla.org/en-US/firefox/addon/scriptish/>
many
months ago and did the FF4 work, it's not hard.

Erik

--
Erik Vergobbi Vold

Email: erikvv...@gmail.com
Website: http://erikvold.com/
Twitter: http://twitter.com/erikvold
Identi.ca: http://identi.ca/erikvold
LinkedIn: http://www.linkedin.com/in/erikvold


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
sizzlemctwizzle  
View profile  
 More options Feb 17 2011, 11:38 am
From: sizzlemctwizzle <medleym...@gmail.com>
Date: Thu, 17 Feb 2011 08:38:22 -0800 (PST)
Local: Thurs, Feb 17 2011 11:38 am
Subject: Re: Auto Update Checking Demo
On Feb 17, 9:35 am, Erik Vold <erikvv...@gmail.com> wrote:

> I merged this branch into
> Scriptish<https://addons.mozilla.org/en-US/firefox/addon/scriptish/>
> many
> months ago and did the FF4 work, it's not hard.

Yeah I thought FF3 support would be more difficult so I did it first.
I'm gonna try to do the FF4 work today.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
sizzlemctwizzle  
View profile  
 More options Feb 23 2011, 4:08 pm
From: sizzlemctwizzle <medleym...@gmail.com>
Date: Wed, 23 Feb 2011 13:08:33 -0800 (PST)
Local: Wed, Feb 23 2011 4:08 pm
Subject: Re: Auto Update Checking Demo
Alright I got my branch working in FF4:
https://github.com/downloads/sizzlemctwizzle/greasemonkey/greasemonke...

Still might need a little work, but I think it works fairly well.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tobbe Lundberg  
View profile  
 More options Feb 24 2011, 1:35 am
From: Tobbe Lundberg <to...@tlundberg.com>
Date: Wed, 23 Feb 2011 22:35:10 -0800 (PST)
Local: Thurs, Feb 24 2011 1:35 am
Subject: Re: Auto Update Checking Demo
On Feb 17, 4:40 am, sizzlemctwizzle <medleym...@gmail.com> wrote:

> For scripts that are capable of
> update checking, basically there is a minimum number of days to wait
> between update checks of a script, which is a preference you can
> modify in the Greasemonkey preferences dialog.

Someone over at userscripts.org had a different logic that worked like
this IIRC:

* Set a maximum amount of days to wait before checking for updates.
Let's say the user picks five days.
* After five days an update check is done, and an update is found.
* timeToNextUpdateCheck is now set to a few hours.
* After a few hours an update check is done, and NO update is found.
* timeToNextUpdateCheck is increased to half a day.
* As long as no updates are found timeToNextUpdateCheck will continue
to increase until it reaches the user's maximum setting. If an update
is found it is reset back to a few hours.

The reason behind this logic was that development on user scripts is
usually done in sprints. So when the script author takes time to
update the script it's likely there will be another update again soon.
And if there hasn't been an update in a long time (user's maximum
setting) there will probably not be an update anytime soon again.

Is this anything you'd like to implement?

//Tobbe


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
sizzlemctwizzle  
View profile  
 More options Feb 24 2011, 2:25 am
From: sizzlemctwizzle <medleym...@gmail.com>
Date: Wed, 23 Feb 2011 23:25:03 -0800 (PST)
Local: Thurs, Feb 24 2011 2:25 am
Subject: Re: Auto Update Checking Demo
On Feb 24, 12:35 am, Tobbe Lundberg <to...@tlundberg.com> wrote:

> Is this anything you'd like to implement?

That's an exponential backoff and it can still be incorporated into my
branch. Currently an update check takes place whenever a script is
executed and a constant interval of time has past since the last
update check. An exponential backoff could be used in place of that
constant interval if that's what people want.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »