| 193 | } |
| 194 | |
| 195 | function removeExpandButton(element?) { |
| 196 | element || (element = document) |
| 197 | const expandButtons = element.querySelectorAll(".ContentItem-expandButton") |
| 198 | if (expandButtons.length) { |
| 199 | expandButtons.forEach((button) => { |
| 200 | const parent = button.parentElement |
| 201 | if (!element.classList) { |
| 202 | if (parent.classList.contains("RichContent")) { |
| 203 | const collapsed = parent.querySelector( |
| 204 | ".RichContent-inner--collapsed" |
| 205 | ) |
| 206 | collapsed && (collapsed.style.maxHeight = "unset") |
| 207 | removeExpandButton(parent) |
| 208 | } else { |
| 209 | parent.style.display = "none" |
| 210 | } |
| 211 | } |
| 212 | button.style.display = "none" |
| 213 | }) |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | function getDescription() { |
| 218 | const summary = document.querySelector<HTMLMetaElement>( |