User:Eejit43/scripts/redirect-helper
redirect-helper | |
---|---|
![]() | |
Description | User script to easily manage redirects |
Author(s) | Eejit43 |
First released | May 17, 2023 |
Updated | January 29, 2024 |
Browsers | Tested on Chromium and Firefox |
Skins | User:Eejit43/skin-support |
Source | User:Eejit43/scripts/redirect-helper.js |
GitHub repository | redirect-helper.ts |
This user script enables convenient editing and creation of redirects. Although it serves a similar purpose to Wugapodes' "Capricorn" and its earlier versions, this script is completely different. It has been redesigned with enhanced user-friendliness and incorporates new features.
Usage
This script's editor can be accessed in the following ways:
- Using the automatically set up dialog on redirect pages
- Can be started when clicking "Create redirect" on a nonexistent page
- Can be started by clicking "Redirect page" in the "More"/"Tools" menu on an existing article
Recent notable changes
For a more detailed changelog, see the script's GitHub commit history.
- January 30, 2024 : Ignore italic text in section names for redirect target.
- January 29, 2024
- Added a check for {{R with Wikidata item}} without being linked to a Wikidata item and vice versa.
- Added "Show changes" button to show the diff of the current changes to the redirect.
- Moved the preview templates button to a layout with the tag input element.
:
- January 28, 2024 : Added a field for modifying redirect default sort key (DEFAULTSORT).
- January 27, 2024 : Added a field for modifying redirect categories.
- January 26, 2024
- Changed background color to gray and switched styles to be applied through classes/ids so they can be customizable.
- Added support for viewing categories in "Preview templates" menu.
:
- January 25, 2024 : Added "Preview templates" button to show how the selected redirect categorization templates would appear on the current page.
- January 24, 2024 : Added checks for using protection redirect categorization templates unnecessarily.
Installation
Simple
Install Enterprisey's "script-installer" (at Preferences → Gadgets → Advanced → Install scripts without having to manually edit JavaScript files (documentation)), then come back to this page and click the "Install" button in the infobox on the right.
Manual
Add the following to your common.js (or a skin specific JavaScript page):
{{subst:install user script|User:Eejit43/scripts/redirect-helper.js}}
Comments/bug reports
Please leave comments or report bugs on my talk page, or file an issue on the GitHub repository.