User:Js/markZeroEdits

Script marks zero size collapsed edits (usually simple vandalism reversions) in Watchlist and Recent Changes.



Script only works on the above shown kind of watchlist/RC, which requires «Enhanced Recent Changes» and «Expand Watchlist» Preferences options.

How it works

 * 1) It finds all zero size collapsed edits and looks at the single edits inside.
 * 2) If edit(s) from one user are followed by one edit from another user with "revert/undo" edit summary, the collapsed edit is marked with   class, otherwise with   class.
 * 3) CSS code highlights these collapsed edits.

Installation
Add this to your monobook.js:

Optional parameters
If you use FireFox or Opera, you might want to use opacity instead of the grayish color, e.g.