Currently, Cat-a-lot requires users to manually select files to batch-edit categories. This becomes inefficient when dealing with categories containing thousands of files. This task proposes adding support for QuickCategories integration using PetScan + PagePile for large-scale category edits, improving usability and performance for power users.
**Features Currently Implemented**
- A checkbox toggle appears in the Cat-a-lot UI only if the current category contains more than a defined threshold (currently set to 100 for easier testing).
- If the toggle is checked:
-- Clicking the + / → / − buttons will automatically generate a PagePile using PetScan for the entire category.
-- It will then redirect to QuickCategories in a new tab for background processing.
- If the user selects a large number of files manually (irrespective of the size of the current category), a confirmation dialog prompts whether to proceed with QuickCategories or Cat-a-lot's in-browser editing.
**To test**
Disable Cat-a-lot from your preferences and add the following to your [[ https://commons.wikimedia.org/wiki/Special:Mypage/common.js | common.js ]]:
```
mw.loader.load('//commons.wikimedia.org/w/index.php?title=User:Adiba_anjum3/Gadget-Cat-a-lot-large-files.js&action=raw&ctype=text/javascript');
```
This is a bare-bones working version of the feature. It still needs refinement so feedback is very much appreciated.