User:Polygnotus/Scripts/CategoryToClipboard

{{Infobox user script

| name = CategoryToClipboard

| desc = Allows user to copy items/subcats of a category (recursively or not) to the clipboard

| author = Polygnotus

| source = User:Polygnotus/Scripts/CategoryToClipboard.js

| screenshot =

}}

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

{{further|Wikipedia:User scripts#How do you install user scripts?}}

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 =

  • 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 =

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