Last active
November 14, 2019 04:02
-
-
Save mu-hun/4c2f5b76cb400a6c1363fdadcd1609c3 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 INTERVAL = 250 | |
const x = document.getElementById('cafe_main').contentWindow.document.getElementById('innerNetwork').contentWindow | |
(function next(interval) { | |
if (x.document.querySelector('span.m-tcol-c.list-count') === null || x.document.querySelector('td.m-tcol-c').firstChild.data === "작성하신 댓글이 없습니다.") return | |
x.confirm = () => true | |
if (!x.document.getElementById('selectAll').checked) | |
x.document.getElementById('selectAll').click() | |
cafe_main.innerNetwork.deleteComment() | |
console.log('Delete OK') | |
setInterval(()=> next(interval), interval) | |
})(INTERVAL) |
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 INTERVAL = 250 | |
const x = document.getElementById('cafe_main').contentWindow.document.getElementById('innerNetwork').contentWindow | |
(function next(interval) { | |
if (x.document.querySelector('span.m-tcol-c.list-count') === null || x.document.querySelector('td.m-tcol-c').firstChild.data === "작성하신 게시글이 없습니다.") return | |
x.confirm = () => true | |
} | |
if (!x.document.getElementById('selectAll').checked) | |
x.document.getElementById('selectAll').click() | |
cafe_main.innerNetwork.removeArticles() | |
console.log('Delete OK') | |
setInterval(() => next(interval), interval) | |
)(INTERVAL) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment