User:Suffusion of Yellow/mark-reverted

From WikiProjectMed
Jump to navigation Jump to search
Mark Reverted
DescriptionHighlights revered edits in history pages, contributions, recent changes, and elsewhere
Author(s)Suffusion of Yellow
StatusBeta
First releasedDecember 6, 2019; 4 years ago (2019-12-06)
UpdatedDecember 6, 2019; 4 years ago (2019-12-06)
Browser supportTested with Firefox and Chromium. Requires async function support.
Skin supportTested with Monobook and Vector
SourceUser:Suffusion of Yellow/mark-reverted.js

Mark Reverted helps you sift through pages with large numbers of diffs, by highlighting reverted edits. It works not only on history pages, but also user contributions, recent changes, edit filter logs, and even dramaboards.

Installation

Add the line {{subst:iusc|User:Suffusion of Yellow/mark-reverted.js}} to your common.js page.

Activation

This script may require hundreds of API calls, so it will not run automatically on every page. To activate it, click on the Mark reverted link under tools.

Uses

A sneaky IP-hopping vandal leaves behind hundreds of unsourced birthdate changes before being blocked. Most were reverted long ago, but the rest are buried behind other edits, so a script like massRollback is of no use. This script will quickly highlight the ones that need checking.

Other places to try it:

Creating an edit filter? Crowdsource the testing phase: Set the filter to log-only, and wait for a few hundred hits to build up. Go to the log, select "With saved changes only". If the filter has a low false positive rate, Mark Reverted should reveal a sea of (mostly) green, with only a few hits to check manually.

Legend

  • Live: This revision has the same SHA-1[note 1] as the current revision.
  • Reverted: A revision made after this one has the same SHA-1 as one made earlier, but this revision does not share that SHA-1.[note 2]
  • Unknown: None of the above.[note 3]
  • Error: An error occurred. Perhaps the connection was interrupted, or there is a bug in the script.

Notes

  1. ^ A very small number of revisions may have an incorrect SHA-1 stored in the database. See phab:T239717. The script will give incorrect results on those pages.
  2. ^ If a revision could be marked both "live" and "reverted", it will always be marked "live"
  3. ^ Future versions of this script may attempt to analyze the content of these revisions