User:Andy M. Wang/massretarget

massretarget is a script that intends to allow a user to find redirects to the current page and batch-retarget them to another page. The script will add a "Mass retarget" tab as an option near the top of the page when viewing Special:WhatLinksHere for the page in question.

To use this script: Copy the line below, then  [ click here] , paste the line, and hit.
 * Report any issues to me, Andy M. Wang. Feedback is always welcome. Feel free to note code inefficiencies (I'm not a JavaScript guru), and I could try to improve it. Feel free to adapt the script as you see fit.
 * Report any issues to me, Andy M. Wang. Feedback is always welcome. Feel free to note code inefficiencies (I'm not a JavaScript guru), and I could try to improve it. Feel free to adapt the script as you see fit.

Usage

 * 1) Go to the page to check for incoming redirects. Under, click "". You should be able to see a "Mass retarget" option at the top of the page. Click "Mass retarget". If incoming redirects are found, they are listed.
 * 2) Enter the new title that incoming redirects should target, and click okay.

Script
The live script is at .js.