Jump to content

英文维基 | 中文维基 | 日文维基 | 草榴社区

User:Eejit43/scripts/afcrc-helper

From Wikipedia, the free encyclopedia


User script
afcrc-helper
DescriptionUser script to help handle requests at WP:AFC/R and WP:AFC/C
Author(s)Eejit43
First releasedFebruary 15, 2024; 9 months ago (2024-02-15)
UpdatedNovember 23, 2024; 1 day ago (2024-11-23)
BrowsersTested on Chromium
Skins
SourceUser:Eejit43/scripts/afcrc-helper.js
GitHub repositoryafcrc-helper.ts

This user script was inspired by Enterprisey's "AFCRHS" script, and helps to handle requests at WP:AFC/R and WP:AFC/C (redirects and categories creation requests). This script features an easier to use interface with improved functionality and new features. It can be run using the link in the "More"/"Tools" menu.

Configuration

This script can be configured via a window.afcrcConfig object to your common.js. This takes the following form:

window.afcrcConfiguration = {
    createdPageWatchMethod: 'nochange' | 'preferences' | 'unwatch' | 'watch',
};

By default, pages that are created will use the preferences watchlist change method, following the Preferences → Watchlist → Watched pages → Tick Add pages and files I edit to my watchlist configuration field. This can be changed through createdPageWatchMethod to either nochange (don't change watch settings for the created page), unwatch (unwatch the created page), or watch (watch the created page).

For example, to not change watch settings for created pages, add the following to your common.js:

window.afcrcConfiguration = {
    createdPageWatchMethod: 'nochange',
};


Recent notable changes

For a more detailed changelog, see the script's GitHub commit history.

  • November 11, 2024; 13 days ago (2024-11-11): Show confirmation when closing dialog.
  • October 29, 2024; 26 days ago (2024-10-29): Support modification of page creation watch method via global parameter.
  • August 29, 2024; 2 months ago (2024-08-29): Correctly handle unnamed template parameters without preceding parameters.
  • July 15, 2024; 4 months ago (2024-07-15): Add very basic dark mode support.
  • June 2, 2024; 5 months ago (2024-06-02): Support adding additional reasoning to denied requests by appending content following a comma.
  • April 29, 2024; 6 months ago (2024-04-29):
    • Support commenting on accepted requests.
    • Support the editing of redirect targets.
  • April 17, 2024; 7 months ago (2024-04-17): Support the addition of rcat redirects with possibilities.
  • April 7, 2024; 7 months ago (2024-04-07): Support adding template parmaters to accepted redirects.
  • April 1, 2024; 7 months ago (2024-04-01): Link to pages in changes UI.
  • March 28, 2024; 7 months ago (2024-03-28): Improve requester detection logic.
  • March 17, 2024; 8 months ago (2024-03-17):
    • Support "notredirect" autofill closing reason.
    • Better parse variations of category request data.
  • March 14, 2024; 8 months ago (2024-03-14): Improve handling of invalid sections.
  • March 12, 2024; 8 months ago (2024-03-12): Improve rate limit handling.
  • February 22, 2024; 9 months ago (2024-02-22): Merge identical comments where applicable.
  • February 21, 2024; 9 months ago (2024-02-21):
    • Merge identical acceptance and denial messages where applicable.
    • Improve section editing logic to handle sections with identical content.
  • February 18, 2024; 9 months ago (2024-02-18): Use latest page content when finalizing request handling.

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/afcrc-helper.js}}

Comments/bug reports

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