This commit is contained in:
2026-01-01 10:04:46 +08:00
parent dd80591230
commit 09667b2c11
+3 -3
View File
@@ -35,10 +35,10 @@
window.open = function() { window.open = function() {
return originalOpen('', '_self'); return originalOpen('', '_self');
}; };
// 可选:点击后提示用户已禁用弹窗 // 点击后隐藏按钮
alert('Pop-ups have been disabled for this page.'); button.style.display = 'none';
}); });
// 挂载按钮到页面 // 挂载按钮到页面
document.body.appendChild(button); document.body.appendChild(button);
})(); })();