()
| 180 | |
| 181 | // 自动展开全文 |
| 182 | function autoOpenCodeFunc() { |
| 183 | removeExpandButton() |
| 184 | removeRichContentCollapsed() |
| 185 | addCss(` |
| 186 | .RichContent--unescapable.is-collapsed .RichContent-inner { |
| 187 | max-height: unset !important; |
| 188 | mask-image: unset !important; |
| 189 | } |
| 190 | .RichContent--unescapable.is-collapsed .ContentItem-rightButton { |
| 191 | display:none !important; |
| 192 | }`) |
| 193 | } |
| 194 | |
| 195 | function removeExpandButton(element?) { |
| 196 | element || (element = document) |
no test coverage detected