Adds a button labelled Undo just under the thanks button on the mobile interface
Built-in confirm dialog by way of a prompt for an edit summary.
Detects suppressed revisions and prevents reverts when the revision cannot be accessed.
Detects pages which are protected and prevents reverts.
Changes the position of the thanks button and adds a confirmation dialogue to the thank button.
The label of the button is set according to the language set in the preferences.
Cross-wiki compatibility(New in 2.0.1)
Importation
This script can be imported to
skin.js or
common.js by adding: importScript('User:DannyS712/Undo.js');// [[User:DannyS712/Undo.js]]
or {{subst:Iusc|User:DannyS712/Undo.js}}