Feb
16
2009
2

Wiki Edits Graph Userscript

I got a little bored on my ride on the Bolt Bus so I started surfing around wikipedia. I’ve recently taken to quickly looking at the edits page of a wiki when reading it, just to see if there’s been any interesting or recently activity on the info. Whilst in the midst of checking this info out, I decided it would be cool if there was some quick way to see this info broken down into an easy to read graphical display. This is when I decided that I could probably make this happen with some clever greasemonkeying.

A few hours later I had a proof of concept script that even worked fairly well, thanks to a great little JavaScript/Canvas graphing kit called PlotKit from liquidx.net (which uses excanvas by Google, and MochiKit). 

Some screen grabbage:

Adds a button tot he nav bar 

Adds a button to the nav bar
Overlay Graph    

Overlay Graph

The graph is currently edits/time, and it tries to pick an appropriate time scale (months/weeks/days/hours/etc) depending on what the data points are. In the future I’m probably going to add functionality that will let you choose between different datasets, including edits/user.

 

You can install this script for your use if you use Firefox and have greasemonkey installed. It’s currently setup to only work at en.wikipedia.org, but you can add @includes and it should work with any standard wiki setup.

 

Update 1: I completely revamped the entire code base, added a new graph option, and made some buttons that let you fiddle around with how much/how the data is displayed.

Update 2: Finally able to get all the external libraries into a packed form and in the proper order so this isn’t such a bear of a file anymore.

Update 3: (version 1.21) Fixed a problem with the aggregation method that caused all times to show at least 1 edit.

Written by james in: coding |
Feb
11
2009
1

My teeth

Are all out of alignment. Take a look at that one in the lower right. It’s perpendicular!

 

 

That needs to be take care of

That needs to be take care of

Written by james in: Uncategorized |
Jan
31
2009
0

I’m having some problems with my new device

Works like a charm most of the time though….

 

minor issues

my woes are many

Written by james in: Uncategorized |
Dec
10
2008
0

Seriously

blog is go.

Written by james in: Uncategorized |

Powered by WordPress | Theme: Aeros 2.0 by TheBuckmaker.com