< BrandonXLF's scripts | JS | Base template
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:https://www.search.com.vn/wiki/index.php?lang=en&q=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.
🔥 Top keywords: Main PageSpecial:SearchPage 3Wikipedia:Featured picturesHouse of the DragonUEFA Euro 2024Bryson DeChambeauJuneteenthInside Out 2Eid al-AdhaCleopatraDeaths in 2024Merrily We Roll Along (musical)Jonathan GroffJude Bellingham.xxx77th Tony AwardsBridgertonGary PlauchéKylian MbappéDaniel RadcliffeUEFA European Championship2024 ICC Men's T20 World CupUnit 731The Boys (TV series)Rory McIlroyN'Golo KantéUEFA Euro 2020YouTubeRomelu LukakuOpinion polling for the 2024 United Kingdom general electionThe Boys season 4Romania national football teamNicola CoughlanStereophonic (play)Gene WilderErin DarkeAntoine GriezmannProject 2025