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