Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Do not overwrite local modifications with updates #1463

arantius opened this Issue · 3 comments

2 participants


Please discuss. We already know the file-modified time and the last update check time. We should be able to use these values to determine that the script has changed on disk since the last update (/install ?) and choose not to overwrite it with remote updates.

Is this important? Is this foolproof? Is this a good idea?


My thoughts are "yes", "workable" and "yes".

File-modified times are probably not idiot-proof, but should at least cater the 90%+ case, and likely even 99%. (I know that access-time updates is sometimes disable on file systems for disk or battery performance but haven't heard of similar things for modified-time.)


Having slept on it, we need to track one more bit of information, I think. If install time (currently not tracked) === modified time, updates are always safe to install. If modified time > install time, then updates should not be installed. Last update check time doesn't really factor into things.


New issue for tracking install time logged for v.Next, using that info (for updates, also pushed) pushed to v.Nextnext.

@arantius arantius referenced this issue from a commit in arantius/greasemonkey
@arantius arantius Track the install time of scripts.
Fixes #1463.
@arantius arantius closed this in ca9621f
@arantius arantius reopened this
@arantius arantius closed this in fb16949
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.