var 阻止打开新页面 = /**
window.addEventListener('load',()=>{
document.body.addEventListener('click', function (e) {
for (const el of e.path) {
if (el.tagName == "A") {
e.preventDefault();
return window.location.href = el.href;
}
}
})
})
window.open = href => window.location.href = href;
**/
wb.preloadScript(阻止打开新页面);