User:Shahadat/hide-reverted-edits

From Justapedia, unleashing the power of collective wisdom
Jump to navigation Jump to search
hide-reverted-edits
DescriptionHide reverted edits from page history
Author(s)Shahadat
UpdatedNovember 19, 2023
    (8 months ago)
Browser supportModern browsers (IE not supported)
Skin support
  • Vector
  • Monobook
  • Modern
  • Cologne Blue
  • Timeless
  • MinervaNeue
SourceUser:Shahadat/hide-reverted-edits.js

Shows a next to the Compare selected revisions button. Edits that were reverted, or are reverts themselves are hidden upon clicking, so that you can actually focus on how the article evolved over time.

The script recognizes reverts made by all the standard tools such as Twinkle, Huggle, STiki, native MediaWiki undos and rollbacks, and reverts done by ClueBot and XLinkBot. Undos are hidden only if the they begin with the default edit summary and change in byte count is complementary.

NOTE: This script only hides intentional reverts. Hence it does not take into account the newly introduced "Reverted" and "Manual revert" change tags, as they get frequently applied when the "revert" is merely accidental.

Installation

If you have the script-installer gadget, just click on the "Install" button in the infobox.

Otherwise, add the line

importScript('User:Shahadat/hide-reverted-edits.js'); // [[User:Shahadat/hide-reverted-edits.js]]

on your common.js or skin.js page.

Script Attribution