Versions & Diffs for a userscript

in Userscripts.org discussion
Subscribe to Versions & Diffs for a userscript 97 posts, 53 voices



gabedibble Scriptwright

Jesse,

Can you provide an upload link for Scriptwrights to upload previous versions? I have a few previous revisions I'd like to put up for history. Maybe a form to upload the file and a date-field to indicate when it was originally uploaded? (That is unless you have all the previously uploaded files, but are yet to be associated.)

Also, on the 'Versions' page I have a few ideas. First, show the current version at the top of the list. Then, what do you think about adding a checkbox next to each revision so one could check the differences between revision A & revision F?

Thanks!
[Oh one last thing, kind of unrelated but just sprung to mind. Can you please re-allow <style> tags on script-pages?]</style>

 
Avindra V.G. Scriptwright

how about the ability to delete previous versions? sometimes, I'll update my script, and then seconds later, someone suggests something or I'll add something I forgot about, creating a hunk of versions, when it's really just one new version.

 
GIJoe Scriptwright

I would like to see the diffs before saving (making public) an updated script...

 
khopesh Scriptwright

@QP: You beat me to my requests ... I had to delete them as I read over the previous posts.

@avg / @znerp / @Jesse: It would be nice to be able to delete previous versions. To head off abuse, limit deletions to revisions that nobody ever installed.

@GIJoe: I like your "preview-by-diff" idea; it would have helped me find a bug that forced me to re-post only a few minutes after the previous update. ... then again, if I could delete it as noted above, it wouldn't be such a problem.

 
BlindWanderer Scriptwright

Two suggestions:
1) Scriptwriter revision note/comment
2) Comments could be marked with the version/revision that they applied to (by date) with a way for the script author to mark them as resolved later with a future revision number.

 
lazyttrick Scriptwright

Hi, anyone can inform what's the GMT used by the server to define those times? I think I may need to know for the updater, not sure though... thanks :)

 
Jesse Andrews Admin

I plan to rework the upload/update flow soon.

Goals include adding comments to revisions, previewing the changes before saving, requiring a description/summary before it is shown in public indexes, and more. It will be in phases so we can talk through the issues as it gets implemented.

 
Aquilax Scriptwright

It would be also nice to have a beta version, just to do some install test before release it.

 
Aquilax Scriptwright

Hi Jesse, most of the scriptwrighters keep a script's version log, it would be nice if it can be joined together with the script's versions. Moreover it would be very nice if all the script's versions with the same @version meta tag were together grouped.

 
Photodeus Scriptwright

Sometimes I see code to be forked, and today I found a script that was blatantly stolen from me with one string translated into another language, took some time to spot the differences.

So I would request a way to diff two different scripts by script id and version.

 
jerone Scriptwright

@Photodeus

Sometimes I see code to be forked, and today I found a script that was blatantly stolen from me with one string translated into another language, took some time to spot the differences.

So I would request a way to diff two different scripts by script id and version.

Why not download those 2 and use a program for that. I don't see a point for this suggestion.
 
Photodeus Scriptwright

Yea... What's the point in having automated tools to do the work for me when I can do it by hand!
Excellent idea! Why didn't I think of it myself...........

Of course I used a program to compare the script. That's what I've done so far and it's annoying.

 
AnnanFay Scriptwright

It would be good if on the screen showing the different revisions it showed the script's version from the metadata. This would help people know which the major changes are.

I would also love to do difs between scripts.

 
greasefury Scriptwright

Hi!
It would be great to have the number of installations for each version...
*

 
jerone Scriptwright

I want that too, but in the mean time: Userscripts : Script Version by w35l3y.

 
Buggy Scriptwright

Please update this great script as it hasn't worked for quite some time now.
Imagebam updated their site almost two months ago, and the script hasn't worked since then.

 
nomex User

Yes :) please update
thank you!

 
Thlayli Scriptwright

I'd really like to be able to delete versions. I read about the security risks, but I don't think it's that big a problem. The ability to go back and identify the "evil" version won't really help the people who installed it. I'd use it for removing similar versions (e.g. I changed the wording of something, but no functional code.) and also for removing accidental updates. Last night I managed to paste in the wrong script, resulting in quite a mess. I'd like to be able to remove those, since it's not even the right script.

 
sizzlemctwizzle Scriptwright

Thlayli wrote:
I'd really like to be able to delete versions. I read about the security risks, but I don't think it's that big a problem. The ability to go back and identify the "evil" version won't really help the people who installed it. I'd use it for removing similar versions (e.g. I changed the wording of something, but no functional code.) and also for removing accidental updates. Last night I managed to paste in the wrong script, resulting in quite a mess. I'd like to be able to remove those, since it's not even the right script.

Having the malicious versions available lets us identify a malicious user and delete their account.

 
RunningBlind Scriptwright

Having the malicious versions available lets us identify a malicious user and delete their account.

Then versions should be able to be disabled for installation if it was a mistake, but still be readable so users can identify them as malicious or not.

 
sizzlemctwizzle Scriptwright

RunningBlind wrote:
Then versions should be able to be disabled for installation if it was a mistake, but still be readable so users can identify them as malicious or not.

I agree and I even think you should be able to disable the current version and I think Jesse said that he would implement that awhile back.

 
Vaughan Chan... Scriptwright

Userscripts : Script Version really is useful, as already pointed out by a couple people in this thread, but are there any plans to include that script's features server side? It would be nice to see that info from any computer as well as for the versions I released before installing that script.

It would also be nice to see a little graph of installs over time, but I guess the historical information required for this might not be available.

 
eWolf Scriptwright

I'd like a possibility to remove previos versions of my scripts, because I'm planning to obfuscate my scripts' code, and this makes no sense if you can watch the previous versions.

UPDATE: As I see, someone has already requested this feature. You could of course keep the versions on the server to identify malicios users but just make them unavailable for others.

 
sizzlemctwizzle Scriptwright

eWolf wrote:
I'm planning to obfuscate my scripts' code

How do you expect your users to trust your script if you obfuscate it?

 
silver_surfer Scriptwright

I didn't read the whole topic, but what's about a "Changelog"? Everytime you change a script, you can add some information, that will be displayed. Like this:


Changelog:

  • Version 1.1 - Neuer Core, Speicherung über Greasemonkey und Neue Updatefunktion
  • Version 0.1.1.1 - Homepage upgedatet
  • Version 0.1.1 - Gruppenseite wird in neuem Tab geöffnet
  • Version 0.1 - Automatische Updates und Instruktionen für die erste Benutzung hinzugefügt (Werbefunktion hinzugefügt)
  • Version 0.0.2 - StudiVZ- und MeinVZ-Untersützung hinzugefügt
  • Version 0.0.1 - @Include Bugfix und Partnerschaft mit offizieller Gruppe
  • Version 0.0 - Erste Version