Skip to content

Instantly share code, notes, and snippets.

@mu-hun
Last active August 15, 2020 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mu-hun/94d3868dfde3c76ed57f620f6614ccf7 to your computer and use it in GitHub Desktop.
Save mu-hun/94d3868dfde3c76ed57f620f6614ccf7 to your computer and use it in GitHub Desktop.
북마크 한 메일만 제외해서 삭제하기
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