AO3: [Wrangling] Collapse and Expand Tag Lists

On tags landing pages, turns long tag lists into a collapsable/expandable accordion, as well as each subtag which in turn has subtags

ئاپتورى
escctrl
بۈگۈن قاچىلانغىنى
0
جەمئىي قاچىلانغىنى
34
باھا نومۇرى
1 0 0
نەشرى
1.0
قۇرۇلغان ۋاقتى
2022-07-31
يېڭىلانغان ۋاقتى
2022-07-31
ئىجازەتنامىسى
MIT
قوللايدىغىنى

Purpose: on the tag landing page, the boxes containing synonyms, subtags, or child tags (characters, relationships, additional tags) can be quite long. This script makes each of these headings into collapsed lists, which can be expanded by selecting the triangle icon. (By default, only lists with more than 10 tags are collapsed.) Any subtag that also has subtags of its own is collapsed.