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

Function closeLoginModalFunc

contents/jianshu.tsx:141–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139
140 // 隐藏登录弹窗
141 function closeLoginModalFunc() {
142 addCss(
143 `.hide,
144 ._23ISFX-wrap,
145 ._23ISFX-mask{
146 display:none !important;
147 }
148 body {
149 overflow: unset !important;
150 }`
151 )
152 let openAppModal = document.querySelector(".open-app-modal")
153 if (openAppModal) {
154 const dialog = openAppModal.closest(
155 "div[class^='dialog-']"
156 ) as HTMLElement
157 const className = dialog.className
158 addCss(
159 `.download-app-guidance,.${className} { display:none !important; }`
160 )
161 }
162 }
163
164 // 自动展开全文
165 function autoOpenCodeFunc() {

Callers 1

PlasmoOverlayFunction · 0.70

Calls 1

addCssFunction · 0.85

Tested by

no test coverage detected