User:Eejit43/scripts/afcrc-helper
afcrc-helper | |
---|---|
Description | User script to help handle requests at WP:AFC/R and WP:AFC/C |
Author(s) | Eejit43 |
First released | February 15, 2024 |
Updated | November 20, 2024 |
Browsers | Tested on Chromium |
Skins |
|
Source | User:Eejit43/scripts/afcrc-helper.js |
GitHub repository | afcrc-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 → 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 : Show confirmation when closing dialog.
- October 29, 2024 : Support modification of page creation watch method via global parameter.
- August 29, 2024 : Correctly handle unnamed template parameters without preceding parameters.
- July 15, 2024 : Add very basic dark mode support.
- June 2, 2024 : Support adding additional reasoning to denied requests by appending content following a comma.
- April 29, 2024
- Support commenting on accepted requests.
- Support the editing of redirect targets.
:
- April 17, 2024 : Support the addition of rcat redirects with possibilities.
- April 7, 2024 : Support adding template parmaters to accepted redirects.
- April 1, 2024 : Link to pages in changes UI.
- March 28, 2024 : Improve requester detection logic.
- March 17, 2024
- Support "notredirect" autofill closing reason.
- Better parse variations of category request data.
:
- March 14, 2024 : Improve handling of invalid sections.
- March 12, 2024 : Improve rate limit handling.
- February 22, 2024 : Merge identical comments where applicable.
- February 21, 2024
- Merge identical acceptance and denial messages where applicable.
- Improve section editing logic to handle sections with identical content.
:
- February 18, 2024 : Use latest page content when finalizing request handling.
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/afcrc-helper.js}}
Comments/bug reports
Please leave comments or report bugs on my talk page, or file an issue on the GitHub repository.