diff --git a/scripts/disable_pop_ups_button.js b/scripts/disable_pop_ups_button.js index 7841b70..bc9226a 100755 --- a/scripts/disable_pop_ups_button.js +++ b/scripts/disable_pop_ups_button.js @@ -35,10 +35,10 @@ window.open = function() { return originalOpen('', '_self'); }; - // 可选:点击后提示用户已禁用弹窗 - alert('Pop-ups have been disabled for this page.'); + // 点击后隐藏按钮 + button.style.display = 'none'; }); // 挂载按钮到页面 document.body.appendChild(button); -})(); +})(); \ No newline at end of file