到qq邮箱,收件箱,打开f12 粘贴代码就可以了
async function delmail(){
document.querySelector("#mainFrame").contentWindow.document.querySelector("#ckb_selectAll").click()
await delay(1000)
document.querySelector("#mainFrame").contentWindow.document.querySelector("#quick_completelydel").click()
await delay(500)
document.querySelector("#QMconfirm_QMDialog_confirm").click()
await delay(2000)
delmail()
}
function delay(time){
return new Promise(resolve=>{
setTimeout(resolve,time)
})
}
delmail()
原文链接:https://blog.csdn.net/ejunda/article/details/131259618
Warning: Don’t paste code into the DevTools Console that you don’t understand or haven’t reviewed yourself. This could allow attackers to steal your identity or take control of your computer. Please type ‘allow pasting’ below to allow pasting.
解决:
点击 开发人员工具(DevTools) 右边上方齿轮(设定)
Settings -> Experiments -> Filter 输入 Past
-> 取消勾选 Show warning about Self-XSS when pasting
-> 【X】关闭
-> Reload DevTools (或关闭所有Chrome页面重启Chrome)
原文链接:https://blog.csdn.net/weixin_44816664/article/details/135213622