Hi all, Wondering if there is a simple tool which would allow me to download the diff history of an article, preferably in some concise and human readable format. I'm trying to watch an edit war, and need a bit of help understanding all the additions and removals. In particular, I'd like to know if there are any sneaky changes getting in under the radar (like when someone partially reverts an edit).
I'd really like to avoid touching a database dump if at all possible :)
Steve
I would second a call for this -- being able to import diffs into a simple database, for example, would allow one to easily sort out edit histories for things like RfAr's.
FF
On 3/8/06, Steve Bennett stevage@gmail.com wrote:
Hi all, Wondering if there is a simple tool which would allow me to download the diff history of an article, preferably in some concise and human readable format. I'm trying to watch an edit war, and need a bit of help understanding all the additions and removals. In particular, I'd like to know if there are any sneaky changes getting in under the radar (like when someone partially reverts an edit).
I'd really like to avoid touching a database dump if at all possible :)
Steve _______________________________________________ WikiEN-l mailing list WikiEN-l@Wikipedia.org To unsubscribe from this mailing list, visit: http://mail.wikipedia.org/mailman/listinfo/wikien-l
It's not exactly what you're looking for, but one of the history animation tools might do the trick. I've used them before to view how an article changes with each edit. They're listed at [[WP:TOOLS]], and one of them is at http://phiffer.org/projects/wikipedia-animate/ .
Spangineer / Nathaniel
On 3/8/06, Steve Bennett stevage@gmail.com wrote:
Hi all, Wondering if there is a simple tool which would allow me to download the diff history of an article, preferably in some concise and human readable format. I'm trying to watch an edit war, and need a bit of help understanding all the additions and removals. In particular, I'd like to know if there are any sneaky changes getting in under the radar (like when someone partially reverts an edit).
I'd really like to avoid touching a database dump if at all possible :)
Steve _______________________________________________ WikiEN-l mailing list WikiEN-l@Wikipedia.org To unsubscribe from this mailing list, visit: http://mail.wikipedia.org/mailman/listinfo/wikien-l
-- Nathaniel C. Sheetz http://www.personal.psu.edu/ncs124
Hi, Is there any doc on that? I installed greasemonkey and the wikipedia-animate tool, but I don't see anything special. In particular, even on a WP history page, the menu item "User script commands" is greyed out.
Steve
On 3/9/06, Nathaniel Sheetz spangineer@gmail.com wrote:
It's not exactly what you're looking for, but one of the history animation tools might do the trick. I've used them before to view how an article changes with each edit. They're listed at [[WP:TOOLS]], and one of them is at http://phiffer.org/projects/wikipedia-animate/ .
Spangineer / Nathaniel
On 3/8/06, Steve Bennett stevage@gmail.com wrote:
Hi all, Wondering if there is a simple tool which would allow me to download the diff history of an article, preferably in some concise and human readable format. I'm trying to watch an edit war, and need a bit of help understanding all the additions and removals. In particular, I'd like to know if there are any sneaky changes getting in under the radar (like when someone partially reverts an edit).
I'd really like to avoid touching a database dump if at all possible :)
Steve _______________________________________________ WikiEN-l mailing list WikiEN-l@Wikipedia.org To unsubscribe from this mailing list, visit: http://mail.wikipedia.org/mailman/listinfo/wikien-l
-- Nathaniel C. Sheetz http://www.personal.psu.edu/ncs124 _______________________________________________ WikiEN-l mailing list WikiEN-l@Wikipedia.org To unsubscribe from this mailing list, visit: http://mail.wikipedia.org/mailman/listinfo/wikien-l
I can't find anything. I haven't reinstalled it since my recent hard drive crash, and my attempts to reinstall it now haven't worked. I'm no expert on these things, so I don't understand the problem either. Perhaps the scripts haven't been updated for the new version of Greasemonkey; I'm not sure. Sorry about that.
Nathaniel
On 3/9/06, Steve Bennett stevage@gmail.com wrote:
Hi, Is there any doc on that? I installed greasemonkey and the wikipedia-animate tool, but I don't see anything special. In particular, even on a WP history page, the menu item "User script commands" is greyed out.
Steve
On 3/9/06, Nathaniel Sheetz spangineer@gmail.com wrote:
It's not exactly what you're looking for, but one of the history
animation
tools might do the trick. I've used them before to view how an article changes with each edit. They're listed at [[WP:TOOLS]], and one of them
is
at http://phiffer.org/projects/wikipedia-animate/ .
Spangineer / Nathaniel
On 3/8/06, Steve Bennett stevage@gmail.com wrote:
Hi all, Wondering if there is a simple tool which would allow me to download the diff history of an article, preferably in some concise and human readable format. I'm trying to watch an edit war, and need a bit of help understanding all the additions and removals. In particular, I'd like to know if there are any sneaky changes getting in under the radar (like when someone partially reverts an edit).
I'd really like to avoid touching a database dump if at all possible
:)
Steve _______________________________________________ WikiEN-l mailing list WikiEN-l@Wikipedia.org To unsubscribe from this mailing list, visit: http://mail.wikipedia.org/mailman/listinfo/wikien-l
-- Nathaniel C. Sheetz http://www.personal.psu.edu/ncs124 _______________________________________________ WikiEN-l mailing list WikiEN-l@Wikipedia.org To unsubscribe from this mailing list, visit: http://mail.wikipedia.org/mailman/listinfo/wikien-l
WikiEN-l mailing list WikiEN-l@Wikipedia.org To unsubscribe from this mailing list, visit: http://mail.wikipedia.org/mailman/listinfo/wikien-l
-- Nathaniel C. Sheetz http://www.personal.psu.edu/ncs124
I started to fix the script: http://dzonux.net/wikipedia-animate-hack.user.js
It shows the basic layout, but it stops right before it animates.
Steve, are there are any other features you would like?
Jonathan
Nathaniel Sheetz wrote:
I can't find anything. I haven't reinstalled it since my recent hard drive crash, and my attempts to reinstall it now haven't worked. I'm no expert on these things, so I don't understand the problem either. Perhaps the scripts haven't been updated for the new version of Greasemonkey; I'm not sure. Sorry about that.
Nathaniel
On 3/9/06, Steve Bennett stevage@gmail.com wrote:
Hi, Is there any doc on that? I installed greasemonkey and the wikipedia-animate tool, but I don't see anything special. In particular, even on a WP history page, the menu item "User script commands" is greyed out.
Steve
"Jonathan" dzonatas@dzonux.net wrote in message news:4410C729.8040705@dzonux.net...
Nathaniel Sheetz wrote:
On 3/9/06, Steve Bennett stevage@gmail.com wrote:
[snip]
I started to fix the script: http://dzonux.net/wikipedia-animate-hack.user.js It shows the basic layout, but it stops right before it animates. Steve, are there are any other features you would like?
Is there anything like this which will run on IE?
Google: http://www.google.com/search?q=IE+greasemonkey
There are a few.
Phil Boswell wrote:
"Jonathan" dzonatas@dzonux.net wrote in message news:4410C729.8040705@dzonux.net...
Is there anything like this which will run on IE?
On 3/10/06, Jonathan dzonatas@dzonux.net wrote:
I started to fix the script: http://dzonux.net/wikipedia-animate-hack.user.js
It shows the basic layout, but it stops right before it animates.
Steve, are there are any other features you would like?
Jonathan
Ooh, interesting question :) I can now get that script to activate, but yeah, doesn't do much useful yet.
Hard to ask for *more* features when I haven't seen what it does yet. But things that would be useful would be grouping all subsequent edits by a single editor (would be useful in general in Wikipedia), and, yeah like my original quest, somehow being able to download a list of all changes into Excel or something (with dates and URLs would be brilliant...)
Steve
It has been updated to animate and export a basic Excel xml: http://dzonux.net/wikipedia-animate-hack.user.js
"Group edits" is not finished.
Steve Bennett wrote:
On 3/10/06, Jonathan dzonatas@dzonux.net wrote:
I started to fix the script: http://dzonux.net/wikipedia-animate-hack.user.js
It shows the basic layout, but it stops right before it animates.
Steve, are there are any other features you would like?
Jonathan
Ooh, interesting question :) I can now get that script to activate, but yeah, doesn't do much useful yet.
Hard to ask for *more* features when I haven't seen what it does yet. But things that would be useful would be grouping all subsequent edits by a single editor (would be useful in general in Wikipedia), and, yeah like my original quest, somehow being able to download a list of all changes into Excel or something (with dates and URLs would be brilliant...)
Steve _______________________________________________ WikiEN-l mailing list WikiEN-l@Wikipedia.org To unsubscribe from this mailing list, visit: http://mail.wikipedia.org/mailman/listinfo/wikien-l
On 3/11/06, Jonathan dzonatas@dzonux.net wrote:
It has been updated to animate and export a basic Excel xml: http://dzonux.net/wikipedia-animate-hack.user.js
"Group edits" is not finished.
Awesome ;) Would it be possible to get it to include the text of each edit? I'm starting to learn more about greasemonkey, doesn't seem like that would be easy to do. But if it is...
Steve
Hi again, Ok I had my own attempt at adding "group edits". It works, but has the obvious limitation that displaying the diff across a group of collapsed diffs shows not quite what you're expecting. In other words:
Time t0 User A comment1 Time t1 User A Time t2 User A comment2 Time t3 User B comment 3
It shows this as Time t0 User A comment1//---//comment2 Time t3 User B
So if you attempt to compare between t0 and t3, you of course get all the changes made in t1, t2 and t3, whereas you probably just wanted t3. Not sure how to deal with that one.
Anyway, feel free to use this code if at all helpful.
Also...I'm sure by now we're on the wrong list. What's the right one? wikitech?
Steve
// ==UserScript==
// @name Compress history
// @namespace stevage
// @description Collapses consecutive edits from the same person into one
// @include *.wikipedia.org/*action=history
// ==/UserScript==
var hist; hist = document.getElementById('pagehistory');
if (hist) { var diffs; diffs = document.evaluate( "LI", hist, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null ); var last='*x!', prevdiffcomment;
for (var i = 0; i < diffs.snapshotLength; i++) {
var diff = diffs.snapshotItem(i); var comment = document.evaluate( 'SPAN[@class="comment"]', diff, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null ).snapshotItem(0); //GM_log(comment.innerHTML); var a = document.evaluate( "SPAN/A", diff, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null ); eacha = a.snapshotItem(0); if (eacha.title==last) { if (comment) { prevdiffcomment.innerHTML = prevdiffcomment.innerHTML + '//' +comment.innerHTML; } else { prevdiffcomment.innerHTML = prevdiffcomment.innerHTML + '//---'; } diff.parentNode.removeChild(diff); } else { last = eacha.title; if (!comment) { comment = document.createElement('SPAN'); comment.className='comment'; comment.innerHTML=' ---'; diff.insertBefore(comment, null); } prevdiffcomment = comment; } } }
On 3/11/06, Jonathan dzonatas@dzonux.net wrote:
It has been updated to animate and export a basic Excel xml: http://dzonux.net/wikipedia-animate-hack.user.js
"Group edits" is not finished.
Steve Bennett wrote:
On 3/10/06, Jonathan dzonatas@dzonux.net wrote:
I started to fix the script: http://dzonux.net/wikipedia-animate-hack.user.js
It shows the basic layout, but it stops right before it animates.
Steve, are there are any other features you would like?
Jonathan
Ooh, interesting question :) I can now get that script to activate, but yeah, doesn't do much useful yet.
Hard to ask for *more* features when I haven't seen what it does yet. But things that would be useful would be grouping all subsequent edits by a single editor (would be useful in general in Wikipedia), and, yeah like my original quest, somehow being able to download a list of all changes into Excel or something (with dates and URLs would be brilliant...)
Steve _______________________________________________ WikiEN-l mailing list WikiEN-l@Wikipedia.org To unsubscribe from this mailing list, visit: http://mail.wikipedia.org/mailman/listinfo/wikien-l
WikiEN-l mailing list WikiEN-l@Wikipedia.org To unsubscribe from this mailing list, visit: http://mail.wikipedia.org/mailman/listinfo/wikien-l
Steve Bennett wrote:
Hi again, Ok I had my own attempt at adding "group edits". It works, but has the obvious limitation that displaying the diff across a group of collapsed diffs shows not quite what you're expecting. In other words:
Time t0 User A comment1 Time t1 User A Time t2 User A comment2 Time t3 User B comment 3
It shows this as Time t0 User A comment1//---//comment2 Time t3 User B
So if you attempt to compare between t0 and t3, you of course get all the changes made in t1, t2 and t3, whereas you probably just wanted t3. Not sure how to deal with that one.
It's probably better to give diffs against the *last* edit in each group. Doing so not only solves this particular case, but is probably more meaningful in general.
I haven't taken a look at the code yet; if I get around to it, I may post a patch for this.
On 3/12/06, Ilmari Karonen nospam@vyznev.net wrote:
Time t0 User A comment1 Time t1 User A Time t2 User A comment2 Time t3 User B comment 3
It shows this as Time t0 User A comment1//---//comment2 Time t3 User B
So if you attempt to compare between t0 and t3, you of course get all the changes made in t1, t2 and t3, whereas you probably just wanted t3. Not sure how to deal with that one.
It's probably better to give diffs against the *last* edit in each group. Doing so not only solves this particular case, but is probably more meaningful in general.
Ok, after totally confusing myself for the last hour or so, I agree that that is more meaningful. It's also the way the code works, since my t0-t3 are actually in reverse chronological order. I actually rewrote the code to do it the other way, and am now pretty sure that the first way was better ;)
Well, that's nice.
Steve
That code is helpful.
One solution is to capture the click on the "compare" button. Once clicked, restore the pagehistory and submit the correctly selected radio buttons.
Wikitech-l and Meta are both good places: http://meta.wikimedia.org/wiki/User:Dzonatas/script/history
Jonathan
Steve Bennett wrote:
Hi again, Ok I had my own attempt at adding "group edits". It works, but has the obvious limitation that displaying the diff across a group of collapsed diffs shows not quite what you're expecting. In other words:
Time t0 User A comment1 Time t1 User A Time t2 User A comment2 Time t3 User B comment 3
It shows this as Time t0 User A comment1//---//comment2 Time t3 User B
So if you attempt to compare between t0 and t3, you of course get all the changes made in t1, t2 and t3, whereas you probably just wanted t3. Not sure how to deal with that one.
Anyway, feel free to use this code if at all helpful.
Also...I'm sure by now we're on the wrong list. What's the right one? wikitech?
Steve
// ==UserScript==
// @name Compress history
// @namespace stevage
// @description Collapses consecutive edits from the same person into one
// @include *.wikipedia.org/*action=history
// ==/UserScript==
var hist; hist = document.getElementById('pagehistory');
if (hist) { var diffs; diffs = document.evaluate( "LI", hist, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null ); var last='*x!', prevdiffcomment;
for (var i = 0; i < diffs.snapshotLength; i++) {
var diff = diffs.snapshotItem(i); var comment = document.evaluate( 'SPAN[@class="comment"]', diff, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null ).snapshotItem(0); //GM_log(comment.innerHTML); var a = document.evaluate( "SPAN/A", diff, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null ); eacha = a.snapshotItem(0); if (eacha.title==last) { if (comment) { prevdiffcomment.innerHTML = prevdiffcomment.innerHTML + '//' +comment.innerHTML; } else { prevdiffcomment.innerHTML = prevdiffcomment.innerHTML + '//---'; } diff.parentNode.removeChild(diff); } else { last = eacha.title; if (!comment) { comment = document.createElement('SPAN'); comment.className='comment'; comment.innerHTML=' ---'; diff.insertBefore(comment, null); } prevdiffcomment = comment; } } }
On 3/11/06, Jonathan dzonatas@dzonux.net wrote:
It has been updated to animate and export a basic Excel xml: http://dzonux.net/wikipedia-animate-hack.user.js
"Group edits" is not finished.
Steve Bennett wrote:
On 3/10/06, Jonathan dzonatas@dzonux.net wrote:
I started to fix the script: http://dzonux.net/wikipedia-animate-hack.user.js
It shows the basic layout, but it stops right before it animates.
Steve, are there are any other features you would like?
Jonathan
Ooh, interesting question :) I can now get that script to activate, but yeah, doesn't do much useful yet.
Hard to ask for *more* features when I haven't seen what it does yet. But things that would be useful would be grouping all subsequent edits by a single editor (would be useful in general in Wikipedia), and, yeah like my original quest, somehow being able to download a list of all changes into Excel or something (with dates and URLs would be brilliant...)
Steve _______________________________________________ WikiEN-l mailing list WikiEN-l@Wikipedia.org To unsubscribe from this mailing list, visit: http://mail.wikipedia.org/mailman/listinfo/wikien-l
WikiEN-l mailing list WikiEN-l@Wikipedia.org To unsubscribe from this mailing list, visit: http://mail.wikipedia.org/mailman/listinfo/wikien-l
WikiEN-l mailing list WikiEN-l@Wikipedia.org To unsubscribe from this mailing list, visit: http://mail.wikipedia.org/mailman/listinfo/wikien-l
When I try to run this script (in any incarnation), I get nothing on my Firefox (OS X, Firefox 1.5, monkey 0.6.4), but my Javascript console says:
Error: Config is not defined Source File: file:///Users/Josh/Library/Application%20Support/Firefox/Profiles/u4f2twek.default/extensions/%7Be4a8a97b-f2ed-450b-b12d-ee082ba24781%7D/components/greasemonkey.js Line: 117
Any idea how to fix this?
On 3/12/06, Jonathan dzonatas@dzonux.net wrote:
That code is helpful.
One solution is to capture the click on the "compare" button. Once clicked, restore the pagehistory and submit the correctly selected radio buttons.
Wikitech-l and Meta are both good places: http://meta.wikimedia.org/wiki/User:Dzonatas/script/history
Jonathan
Steve Bennett wrote:
Hi again, Ok I had my own attempt at adding "group edits". It works, but has the obvious limitation that displaying the diff across a group of collapsed diffs shows not quite what you're expecting. In other words:
Time t0 User A comment1 Time t1 User A Time t2 User A comment2 Time t3 User B comment 3
It shows this as Time t0 User A comment1//---//comment2 Time t3 User B
So if you attempt to compare between t0 and t3, you of course get all the changes made in t1, t2 and t3, whereas you probably just wanted t3. Not sure how to deal with that one.
Anyway, feel free to use this code if at all helpful.
Also...I'm sure by now we're on the wrong list. What's the right one? wikitech?
Steve
// ==UserScript==
// @name Compress history
// @namespace stevage
// @description Collapses consecutive edits from the same person into one
// @include *.wikipedia.org/*action=history
// ==/UserScript==
var hist; hist = document.getElementById('pagehistory');
if (hist) { var diffs; diffs = document.evaluate( "LI", hist, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null ); var last='*x!', prevdiffcomment;
for (var i = 0; i < diffs.snapshotLength; i++) {
var diff = diffs.snapshotItem(i); var comment = document.evaluate( 'SPAN[@class="comment"]', diff, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null ).snapshotItem(0); //GM_log(comment.innerHTML); var a = document.evaluate( "SPAN/A", diff, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null ); eacha = a.snapshotItem(0); if (eacha.title==last) { if (comment) { prevdiffcomment.innerHTML = prevdiffcomment.innerHTML + '//' +comment.innerHTML; } else { prevdiffcomment.innerHTML = prevdiffcomment.innerHTML + '//---'; } diff.parentNode.removeChild(diff); } else { last = eacha.title; if (!comment) { comment = document.createElement('SPAN'); comment.className='comment'; comment.innerHTML=' ---'; diff.insertBefore(comment, null); } prevdiffcomment = comment; } } }
On 3/11/06, Jonathan dzonatas@dzonux.net wrote:
It has been updated to animate and export a basic Excel xml: http://dzonux.net/wikipedia-animate-hack.user.js
"Group edits" is not finished.
Steve Bennett wrote:
On 3/10/06, Jonathan dzonatas@dzonux.net wrote:
I started to fix the script: http://dzonux.net/wikipedia-animate-hack.user.js
It shows the basic layout, but it stops right before it animates.
Steve, are there are any other features you would like?
Jonathan
Ooh, interesting question :) I can now get that script to activate, but yeah, doesn't do much useful yet.
Hard to ask for *more* features when I haven't seen what it does yet. But things that would be useful would be grouping all subsequent edits by a single editor (would be useful in general in Wikipedia), and, yeah like my original quest, somehow being able to download a list of all changes into Excel or something (with dates and URLs would be brilliant...)
Steve _______________________________________________ WikiEN-l mailing list WikiEN-l@Wikipedia.org To unsubscribe from this mailing list, visit: http://mail.wikipedia.org/mailman/listinfo/wikien-l
WikiEN-l mailing list WikiEN-l@Wikipedia.org To unsubscribe from this mailing list, visit: http://mail.wikipedia.org/mailman/listinfo/wikien-l
WikiEN-l mailing list WikiEN-l@Wikipedia.org To unsubscribe from this mailing list, visit: http://mail.wikipedia.org/mailman/listinfo/wikien-l
WikiEN-l mailing list WikiEN-l@Wikipedia.org To unsubscribe from this mailing list, visit: http://mail.wikipedia.org/mailman/listinfo/wikien-l
-- --jpgordon ∇∆∇∆
It appears to be a problem with Greasemonkey. See this blog for suggestions: http://www.blogger.com/comment.g?blogID=11645460&postID=1135985267118422...
Josh Gordon wrote:
When I try to run this script (in any incarnation), I get nothing on my Firefox (OS X, Firefox 1.5, monkey 0.6.4), but my Javascript console says:
Error: Config is not defined Source File: file:///Users/Josh/Library/Application%20Support/Firefox/Profiles/u4f2twek.default/extensions/%7Be4a8a97b-f2ed-450b-b12d-ee082ba24781%7D/components/greasemonkey.js Line: 117
Any idea how to fix this?