CatChangesViewerDescription | Lists recent category additions/removals on a category page |
---|
Updated | May 6, 2025 (49 days ago) |
---|
Browsers | Chrome, Firefox, etc. (ES2017+ needed) |
---|
Source | |
---|
You can track additions and removals of a category by adding it to your watchlist, but categories with heavy traffic can often inundate the watchlist to the point of uselessness. With this script, you can see a list of recent additions and removals of a category on the category page itself, whether it's in your watchlist or not.
Clicking Search on a category page will show you something like this (taken from Category:Articles with missing files):
Add the following to your common.js or global.js:
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Nardog/CatChangesViewer.js&action=raw&ctype=text/javascript');
Or you may enable the script installer in Preferences → Gadgets and click "Install" in the infobox on this page.
If "Duplicates" is checked, only the most recent change on each page will appear (takes precedence over the other checkboxes).
The default number of changes to retrieve at a time, 50 by default (max: 500), and the number of lines per page, 20 by default, can be modified by adding lines like below to your common.js or global.js (this example doubles the numbers):
window.catchangesviewerDefaultLimit = 100;
window.catchangesviewerChangesPerPage = 40;
- Changes older than 30 days cannot be retrieved.
- Changes through transcluded pages are not detected. A flipside of this is that if a template is edited so that it starts or ceases to categorize a page that trancludes it, but the cache of the page does not get purged until an edit is made, that edit gets registered as adding or removing the category even if it didn't change the transcluding part.
Nardog's scripts |
---|
Extra functionality
- CatChangesViewer – Lists recent category additions/removals on a category page.
- CodeEditorAssist – Allows customizing the code editor, e.g. changing the color theme and enabling live autocompletion.
- Consecudiff – Adds links to diffs of consecutive edits by the same user on watchlist, history, etc.
- CopyCodeBlock – Adds a button to copy the content of each code block (
<pre> ).
- CopySectLink – Adds a button to copy the unencoded page title or section path next to each heading.
- MoveHistory – Lists the past moves a page has gone through.
- RCMuter – Hides specified users' edits on Watchlist/RecentChanges.
- SmartDiff – Makes links and template calls in diffs clickable (supports red links, avoids WP:SEAOFBLUE).
Editing assistance
- DiffUndo – Adds an undo button to each line on the diff while editing.
- ExpandContractions – Expands contractions.
- InsertAnyChar – Insert any character by searching in the entire Unicode chart.
- IPAInput – Type in IPA symbols by directly looking at an IPA key like Help:IPA/English and clicking on the symbols.
- RefRenamer – Replaces reference names like ":0" with descriptive ones like "Smith-2015".
- Unpipe – Converts each piped link to a non-piped one if both lead to the same article.
Itch scratchers
- AutoSectionLink – Adds or refines the
/* section link */ as you edit so only the modified section will be linked in the summary.
- AutoTestcases – Autofills "Preview page with this template" with the most relevant /testcases page that exists.
- PasteToCommons – Upload an image to Commons from anywhere on the site by pasting it.
- SortCentralAuthByEditCount – Sorts the list of local accounts on CentralAuth by edit count.
- TemplatePreviewGuard – Warns when you try to use "Preview page with this template" with a page that doesn't transclude the template.
|