User:Andy M. Wang/massretarget
Appearance
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 Save page.
{{subst:Iusc|User:Andy M. Wang/massretarget.js|User:Andy M. Wang/massretarget}}
- 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
[edit]- Go to the page to check for incoming redirects. Under Tools, click "What links here". 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.
- Enter the new title that incoming redirects should target, and click okay.
Notes
[edit]- Does not update rcats; simply does a regex replacement of the old target to the new.
- Does not check protections, so some retargets may fail.
Script
[edit]The live script is at User:Andy M. Wang/massretarget.js.