Last active
August 15, 2020 07:27
-
-
Save mu-hun/94d3868dfde3c76ed57f620f6614ccf7 to your computer and use it in GitHub Desktop.
북마크 한 메일만 제외해서 삭제하기
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
const bookmark = '.btn_important.on' | |
const interval = setInterval(function () { | |
const items = document.querySelectorAll('.mail_item') | |
for (const item of items) { | |
if (item.querySelector(bookmark) == null) item.querySelector('#mCk').click() | |
} | |
document.querySelector('.btn_del').click() | |
if ( | |
document.querySelector('.info_none') != null || | |
items.length == document.querySelectorAll(bookmark).length | |
) | |
clearInterval(interval) | |
}, 1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment