++
This commit is contained in:
@@ -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);
|
||||
})();
|
||||
})();
|
||||
Reference in New Issue
Block a user