Jump to content

User:Eejit43/scripts/ajax-undo

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Eejit43 (talk | contribs) at 03:52, 17 February 2023 (create documentation page). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
User script
ajax-undo
DescriptionUser script to easily undo edits
Author(s)Eejit43
First releasedFebruary 16, 2023; 2 years ago (2023-02-16)
UpdatedFebruary 16, 2023; 2 years ago (2023-02-16) (see GitHub commit history)
BrowsersTested on Chromium and Firefox
Skins
SourceUser:Eejit43/scripts/ajax-undo.js
GitHub repositoryajax-undo.ts

This user script adds a link following "undo" on page histories, allowing the edit to be undone without leaving the history page. It allows for an optional comment to add to the edit summary.

Installation

Simple

Install Enterprisey's "script-installer" (at Preferences → Gadgets → Advanced → Tick Install scripts without having to manually edit JavaScript files (documentation)), then come back to this page and click the "Install" button in the infobox on the right.

Manual

Add the following to your common.js (or a skin specific JavaScript page):

{{subst:install user script|User:Eejit43/scripts/ajax-undo.js}}

Comments/bug reports

Please leave comments or report bugs on my talk page, or file an issue on the GitHub repository.