Manual:RollbackEdits.php/en

Details
rollbackEdits.php is a maintenance script to rollback all edits by a given user or IP provided they're the most recent edit(s) of a page (just like real rollback). This functionality can also rollback multiple edits, provided they have been made by the same user or IP.