User:Polygnotus/Scripts/Editwars
Appearance
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.
| Description | Detects and displays editwars in the sidebar |
|---|---|
| Author | Polygnotus |
| Updated | April 25, 2026 (4 months ago) |
| Source | User: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]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.