| You take full responsibility for any actions taken using WikiDefender. You must read and abide by all relevant Wikipedia policies when using this tool; failure to do so may result in revocation of rollback permissions or being blocked from editing. |
WikiDefender in light mode | |
| Description | Diff viewer for reverting vandalism |
|---|---|
| Author | User:Gommeh |
| Updated | November 20, 2026 |
| Source | User:Gommeh/Scripts/WikiDefender.js |

WikiDefender is a web-based counter-vandalism tool. It loads edits made to Wikipedia in real-time, allowing for unconstructive edits to be quickly reverted. It is a fork of AntiVandal. WikiDefender is integrated with MediaWiki's ORES service to show the highest-priority edits first. It has many of the same features as Huggle, with the goal of being more intuitive, modern, and easy to install. The rollback permission is required to use WikiDefender.
The current version of WikiDefender is 1.1. It rewrites much of the script and adds a number of new features, including mobile phone support.
Due to the ability of the script to revert edits extremely quickly, it is required for the user to have the rollback right. If you do not have the rollback right, you can make a request at the permissions page (eligible users must have at least 200 mainspace edits and no history of edit warring).

Go to Preferences → Gadgets → Advanced, check "Install scripts without having to manually edit JavaScript files", and save. Reload this page, and there should be a button which says "install".
Add {{subst:lusc|User:Gommeh/Scripts/WikiDefender.js}} to your common.js.
After the script is installed, beside your preferences button, there will now be a link which says " WikiDefender" or visit the direct link. Clicking this will activate the script.
AntiVandal's controls are completely customizable, but these are the defaults:
The source code for WikiDefender can be found at User:Gommeh/Scripts/BetterAntiVandal.js. Contributions or suggestions are welcome! Please leave any feedback on Gommeh's talk page.