User:Andy M. Wang/pageswap

pageswap is a script that allows a user to swap the histories of two pages (with reasonable restrictions), sometimes known as a history swap, sometimes called a round-robin move. The script requires the user to have suppressredirect and move-subpages rights (on enwiki, these are usually granted via either the page mover permission or as part of the standard administrator toolset). The script will add a "Swap" tab to the top of the page near the "new section" button.

To use this script: Copy the line below, then [[click here]], paste the line, and hit Publish changes.

  • {{subst:Iusc|User:Andy M. Wang/pageswap.js|User:Andy M. Wang/pageswap}}
  • Report any issues to me, Andy M. Wang. I'm not much of a JavaScript guru, and if anyone would like to help improve the script, feedback is always welcome. Feel free to adapt the script as you see fit as well.