Description | Adds a button to undo changes using AJAX to history pages AJAXUndo adds a link beside each revision on history pages to undo a revision using AJAX with a default edit summary. The script allows you to quickly undo changes without leaving the page. The script automatically reloads the page after a undo is performed. |
---|---|
Author(s) | User:BrandonXLF |
Status | Working |
First released | December 9, 2019 |
Source | AJAXUndo.js (git) |
GitHub repository | wikipedia-user-scripts |
AJAXUndo adds a link beside each revision on history pages to undo a revision using AJAX with a default edit summary. The script allows you to quickly undo changes without leaving the page. The script automatically reloads the page after a undo is performed.
Installation
importScript('User:BrandonXLF/AJAXUndo.js'); // [[User:BrandonXLF/AJAXUndo.js]]
- Alternatively, use the following instead of the above:
mw.loader.load('/w/index.php?title=User:BrandonXLF/AJAXUndo.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/AJAXUndo.js]]
- To install on other wikis (for instance, globally in your global.js on the Meta-Wiki), use the following code:
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/AJAXUndo.js&action=raw&ctype=text/javascript');
- After installing reload the page and clear your cache
Comments/Bugs
Comments are welcome on my talk page, be sure to indicate that you're talking about this script in the title. I would really like any suggestion to make the script run better.