(() => { const selector = [ '.sm-button.sm-fixed-2', '.message.sm-fixed', '.cu-expandable.sm-fixed', '.cp-launcher-btn' ].join(', '); const threshold = 150; function updateWidgets() { const hide = window.innerWidth <= 767 && window.scrollY > threshold; document.querySelectorAll(selector).forEach(el => { if (hide) { el.style.setProperty('opacity', '0', 'important'); el.style.setProperty('visibility', 'hidden', 'important'); el.style.setProperty('pointer-events', 'none', 'important'); } else { el.style.removeProperty('opacity'); el.style.removeProperty('visibility'); el.style.removeProperty('pointer-events'); } }); } window.addEventListener('scroll', updateWidgets, { passive: true }); window.addEventListener('resize', updateWidgets); const observer = new MutationObserver(() => { updateWidgets(); }); observer.observe(document.body, { childList: true, subtree: true }); updateWidgets(); })();