Jump to content

User:Eejit43/scripts/sync-redirect

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Eejit43 (talk | contribs) at 13:01, 9 January 2024 (Syncing script documentation from GitHub (via script)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
User script
sync-redirect
File:Eejit43's sync-redirect script demo.png
DescriptionUser script to sync talk page redirects with their main page
Author(s)Eejit43
First releasedFebruary 9, 2023; 2 years ago (2023-02-09)
UpdatedJanuary 8, 2024; 17 months ago (2024-01-08) (see GitHub commit history)
BrowsersTested on Chromium and Firefox
SkinsUser:Eejit43/skin-support
SourceUser:Eejit43/scripts/sync-redirect.js
GitHub repositorysync-redirect.ts

This user script allows talk pages to be synced to their corresponding main page redirect. If the main page is a redirect, a link is added to the "More"/"Tools" dropdown menu (or sidebar), which, when clicked, automatically update the page. If it exists on the main page, {{R from move}} is added in {{Redirect category shell}} as well.

Installation

Simple

Install Enterprisey's "script-installer" (at Preferences → Gadgets → Advanced → Tick 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/sync-redirect.js}}

Comments/bug reports

Please leave comments or report bugs on my talk page, or file an issue on the GitHub repository.