User:Polygnotus/Scripts/CategoryToClipboard

CategoryToClipboard
DescriptionAllows user to copy items/subcats of a category (recursively or not) to the clipboard
Author(s)Polygnotus
UpdatedMay 25, 2025
    (2 months ago)
SourceUser:Polygnotus/Scripts/CategoryToClipboard.js

This script adds buttons to any category page that allow you to copy the following to your clipboard:

  • All items in this category
  • All subcategories of this category
  • All items in this category recursively
  • All subcategories of this category recursively

There is a checkbox for when you want whole URLs and not just the pagenames. Also usable as listgenerator for AWB/JWB.

CategoryToClipboard script

Installation

edit

First install User:Enterprisey/script-installer, then come back to this page and click the giant blue "Install" button in the infobox on the right.

Or install it manually by adding the below code to your Special:MyPage/common.js file:

{{subst:iusc|User:Polygnotus/Scripts/CategoryToClipboard.js}}

Functionality

edit
  • Detects circular categories
  • Offers download as text file if copying to clipboard fails
  • Respects maxlag/429, retries up to 3 times
  • Checkbox allows you to get results as URLs or pagenames

Limitations

edit
  • Very large categories will take a long time. Extremely large categories probably won't work because they require more than 3 retries.