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

Function toggleCloseOnScroll

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

Source from the content-addressed store, hash-verified

662 updateMenuCommands()
663 }
664 function toggleCloseOnScroll() {
665 config.closeOnScroll = !config.closeOnScroll
666 handleScrollCommand()
667 GM_setValue('closeOnScroll', config.closeOnScroll)
668 updateMenuCommands()
669 }
670 function handleScrollCommand() {
671 if (config.closeOnScroll) {
672 window.addEventListener('scroll', closePopupOnScroll, { once: true })

Callers

nothing calls this directly

Calls 2

handleScrollCommandFunction · 0.85
updateMenuCommandsFunction · 0.85

Tested by

no test coverage detected