Created
July 3, 2017 07:11
-
-
Save glasslion/9237da30810242f0bd1a3b97a2b3b649 to your computer and use it in GitHub Desktop.
批量删除outlook 里的邮件
This file contains hidden or 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
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
async function deleteMails() { | |
jQuery('._n_U').click() | |
await sleep(500); | |
jQuery('.ms-fcl-np[title="删除(Del)"]').click() | |
} | |
async function batchDeleteMails() { | |
for (var i = 0; i < 9; i++) { | |
await sleep(500); | |
deleteMails() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment