javascript:(function() {
// ==================== 1. 核弹级存储清理 ====================
var keys = [
'notice', 'popup', 'ad', 'tip', 'guide', 'announcement',
'visited', 'closed', 'dismiss', 'showDialog', 'isShow',
'lastShow', 'lastPop', 'expire', 'expires', 'nextShow',
'lastVisit', 'today', 'date', 'day', 'age-notice',
'age_popup', 'age_dialog', 'modal', 'overlay', 'first_visit',
'has_seen', 'no_show', 'hide_modal', '__show_modal',
'adblock_bypass', 'popup_closed', 'notification_shown',
// 新增 GALNAVI 欢迎弹窗控制键
'galnavi-welcome-seen'
];// 爆破 localStorage keys.forEach(function(k) { try { localStorage.setItem(k, '99999999'); } catch(e) {} try { localStorage.setItem(k, 'closed'); } catch(e) {} try { localStorage.setItem(k, 'false'); } catch(e) {} try { localStorage.setItem(k, '1'); } catch(e) {} }); // 爆破 sessionStorage keys.forEach(function(k) { try { sessionStorage.setItem(k, '99999999'); } catch(e) {} try { sessionStorage.setItem(k, 'closed'); } catch(e) {} try { sessionStorage.setItem(k, 'false'); } catch(e) {} }); // 爆破 Cookie keys.forEach(function(k) { try { document.cookie = k + '=; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/'; } catch(e) {} try { document.cookie = k + '=closed; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/'; } catch(e) {} }); // ==================== 2. 全局变量劫持 ==================== var globalVars = ['showDialog', 'isShow', 'showModal', 'isPopup', 'canShow', 'showNotice']; globalVars.forEach(function(v) { try { window[v] = false; } catch(e) {} try { window[v] = function() { return false; }; } catch(e) {} }); // ==================== 3. DOM 元素地毯式清除 ==================== var selectors = [ '.van-dialog', '.age-update-dialog', '.el-dialog', '.el-message-box', '.modal', '.modal-content', '.modal-backdrop', '.popup', '.popup-container', '.popup-wrapper', '.ad-overlay', '.ad-container', '.ad-banner', '.toast', '.notice', '.notice-box', '.announcement', '.guide', '.tip', '.float-layer', '[role="dialog"]', '[role="alert"]', '[class*="dialog"]', '[class*="popup"]', '[class*="modal"]', '[class*="overlay"]', '[id*="dialog"]', '[id*="popup"]', '[id*="modal"]', '[id*="ad-"]', // 新增 GALNAVI 欢迎弹窗选择器(如果有 class 可加,但它是 gd-modal,已包含在 [class*="modal"] 中,无需额外) ]; selectors.forEach(function(sel) { document.querySelectorAll(sel).forEach(function(el) { el.style.display = 'none !important'; el.style.visibility = 'hidden !important'; el.style.opacity = '0 !important'; el.style.pointerEvents = 'none !important'; el.remove(); }); }); // ==================== 4. CSS 暴力屏蔽 ==================== var style = document.createElement('style'); style.id = 'universal-popup-killer'; style.innerHTML = ` .van-dialog, .age-update-dialog, .el-dialog, .modal, .popup, .ad-overlay, [role="dialog"], [class*="dialog"], [class*="popup"], [class*="modal"], .van-overlay, .el-overlay, .modal-backdrop, .gd-modal-overlay, .gd-modal { display: none !important; visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; z-index: -9999 !important; position: absolute !important; top: -9999px !important; } body, html { overflow: auto !important; position: relative !important; height: auto !important; } `; document.head.appendChild(style); // ==================== 5. 动态监控 ==================== if (window.MutationObserver) { var observer = new MutationObserver(function(mutations) { mutations.forEach(function(mutation) { mutation.addedNodes.forEach(function(node) { if (node.nodeType === 1) { var target = node; if (node.matches && node.matches(selectors.join(','))) { killNode(node); } if (node.querySelectorAll) { node.querySelectorAll(selectors.join(',')).forEach(killNode); } } }); }); }); function killNode(el) { if (!el) return; try { el.style.display = 'none !important'; el.style.visibility = 'hidden !important'; el.remove(); } catch(e) {} } observer.observe(document.body, { childList: true, subtree: true, attributes: false }); window.__popupKillerObserver = observer; } // ==================== 6. 额外清理:高 z-index fixed 元素 ==================== document.querySelectorAll('*').forEach(function(el) { var style = window.getComputedStyle(el); if (style.position === 'fixed' || style.position === 'sticky') { var zIndex = parseInt(style.zIndex); if (zIndex > 999) { el.style.display = 'none !important'; el.remove(); } } }); console.log('%c🔥 万能弹窗终结者已启动(含 GALNAVI 支持)!', 'font-size: 16px; color: #00ff00;'); console.log('✅ 已清理 ' + keys.length + ' 种存储键'); console.log('✅ 已监控 ' + selectors.length + ' 种弹窗选择器');
})();



Comments NOTHING