AO3: [Wrangling] Edit Tag page cleanup

Removes descriptions and some fields from Edit Tag pages to avoid wrangling accidents

יוצר
escctrl
התקנות יומיות
0
סה"כ התקנות
68
דירוגים
1 0 0
גרסה
5.0
נוצר
23-06-2022
עודכן
28-12-2024
Size
7.5 קילו-בייט
רישיון
MIT
חל על

💖 What it does

The Edit Tag page is pretty cluttered, and after a while you don't need all those descriptions and hints anymore. With this script, the Edit Tag page gets a cleaner look. It removes text and fields that are unnecessary based on the status of the tag and can help avoid accidentially using a field when it shouldn't be.

🪴 How to use it

The script automatically:

  • hides all descriptive text
  • hides metatag fields on anything other than canonical tags
  • hides fields to add synonyms and subtags to a canonical (with button to display them again, e.g. during rename projects)
  • hides the unwrangleable checkbox on canonicals and synonyms
  • hides the canonical checkbox on synonyms and unwrangleable tags
  • hides the field to syn a tag when it's set as unwrangleable
  • disables the canonical checkbox while the tag's still attached to a metatag (as soon as all metatags are selected to be removed, the canonical checkbox can also be unchecked)
  • removes the button for editing a synonym's canonical; instead the name of the tag itself is a link to its Tag Edit page
  • on unfilterable tags, sets the cursor to the synonym field
  • if the tag is still in draft, highlights the "Draft (x)" in the sidebar/at the top of the page
  • if a synned tag has no uses, highlights the "Taggings Count (x)" in the sidebar/at the top of the page
  • hides the Sign Up link on non-canonical fandom tags

🌱 Upcoming features and bugfixes

  • "lazy click" for the canonical and unwrangleable checkboxes
  • avoid saving NF tags as unwrangleable

🏛️ History

  • v5
    • hides the Sign Up link on non-canonical fandom tags
    • canonical checkbox becomes editable if all metatags are selected to be removed
    • added button to show Subtags/Synonyms boxes on canonical tag
  • v4
    • on synonyms, the canonical tag's name is now its own edit link
    • on unfilterable tags, the input focus now jumps to the synonym field
    • highlights Draft tags
    • hides the entire Child Tag fieldset, when there are neither synonyms nor subtags
    • highlights syns without uses
  • v3 - disables the Canonical checkbox when there's still a metatag
  • v2 - hides Subtags/Synonyms boxes on canonical tags completely, if there are no existing subtags/synonyms (instead of just the "Add" field)
  • v1 - initial version