MCPcopy
hub / github.com/027xiguapi/code-box / autoOpenCodeFunc

Function autoOpenCodeFunc

contents/zhihu.tsx:182–193  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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)

Callers 1

PlasmoOverlayFunction · 0.70

Calls 3

removeExpandButtonFunction · 0.85
addCssFunction · 0.85

Tested by

no test coverage detected