User:DannyS712/Undo

{{warning|This script is no longer being maintained}}

mobileUndo (source) is a script which adds a button which allows a user to perform a revert while using the MobileFrontend extension of MediaWiki.

{{infobox user script

|screenshot =File:MobileUndo-Demo.jpg

| screenshot-caption=The Undo button while using the script

| name = mobileUndo

| desc = Provides a revert button on the mobile interface

| status = Ready for extensive use

| version = 2.0.0

| source = DannyS712/Undo.js

| skins = MiniveraNeue

| browsers = Works on most modern browsers barring Opera Mini.

| styled = yes

}}

Features

  • 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)

{{User:DannyS712/Scripts doc}}