MCPcopy Create free account
hub / github.com/ChinaGodMan/UserScripts / closePopupWindow

Function closePopupWindow

popup-window/popup-window.user.js:591–601  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

589 }
590 }
591 function closePopupWindow() {
592 if (state.popupWindow && !state.popupWindow.closed) {
593 state.popupWindow.close()
594 state.popupWindow = null
595 removeAcrylicOverlay()
596 if (state.linkToPreload) {
597 removePreloadedLink(state.linkToPreload)
598 }
599 window.removeEventListener('scroll', closePopupOnScroll)
600 }
601 }
602 function removePreloadedLink(link) {
603 const preloadElement = document.querySelector(`link[href="${link}"]`)
604 if (preloadElement) {

Callers 3

closePopupOnScrollFunction · 0.85
handleWheelFunction · 0.85

Calls 2

removeAcrylicOverlayFunction · 0.85
removePreloadedLinkFunction · 0.85

Tested by

no test coverage detected