User:2aprilboy/historyReviewer



History reviewer is a script, written in JavaScript, that changes "history" tab style on Wikipedia, in order to bring attention to it if article was changed recently. While it is a standalone script, it works best as an extension to the Navigation popups gadget.

Features

 * time duration since last edit is compared to the average duration between edits (5 most recent edits)
 * if recent edits are too close to each other (less than 30 minutes), it marks the history to be an editWar
 * if last edit was made more recently than previous edits were apart (and before a week ago), it marks the history to be recentlyChanged
 * if the last edit was made by an unregistered user or by user with few contributions (less than 5), it marks the history to be made by an questionableEditor
 * if only 1 edit was ever made, it marks the history to be of a new article
 * otherwise, it marks the history to be ok
 * the actual history is shown on mouseOver event of the "history" tab (thanks to the Navigation popups)

Installation
To enable all features of this script, add this code to your monobook.js (or equivalent file if you use a different skin - e.g. User:2aprilboy/vector.js):

Development notes

 * historyReviewer.js script runs in Firefox 3, Opera 10, Chrome 4, Safari 4 and with some css limitations also in Internet Explorer 8
 * there is a bug with some unicode characters such as on this article
 * to display debug info for currently viewed article, type javascript:alert(hr_debugInfo); in adressbar of your browser
 * to customize the style, edit your monobook.css (or equivalent) - see historyReviewer.css and historyReviewer_ie.css for guidance