Last active
July 20, 2018 01:59
-
-
Save yangfch3/5114ac6d2fa357e4599bde9bfbb84c75 to your computer and use it in GitHub Desktop.
快速删除QQ邮箱、QQ企业邮箱邮件
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 点击收件箱,控制台运行代码,删除所有收件箱邮件 | |
* 删除与某个账号的往来邮件:找到并打开与该账号的一封邮件,鼠标 hover 到收件人,点击往来邮件,然后运行下面的代码 | |
* | |
* 根据网络情况,可以调节下方定时器的间隔 | |
* (顺便发现一个 Bug: Chrome 67.0.3396.99 下 setTimeout 与 setInterval 内无法正常使用便捷选择器 $) | |
*/ | |
setInterval(function () { | |
document.getElementById('mainFrame').contentDocument.getElementsByClassName('o_title2')[0].previousSibling.children[0].click(); | |
document.getElementById('mainFrame').contentDocument.getElementById('quick_completelydel').click(); | |
document.getElementById('QMconfirm_g_confirm').click() | |
}, 3000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment