Skip to content

Instantly share code, notes, and snippets.

@unsafe9
Last active February 13, 2023 13:44
Show Gist options
  • Save unsafe9/82d03945ea4d682c6d93f110c9b4668a to your computer and use it in GitHub Desktop.
Save unsafe9/82d03945ea4d682c6d93f110c9b4668a to your computer and use it in GitHub Desktop.
네이버카페 댓글지우기
/*
네이버카페 작성댓글 페이지 접속시 전체선택 -> 삭제를 자동으로 실행하는 스크립트입니다.
1. 크롬 확장 프로그램 scripty 설치 https://chrome.google.com/webstore/detail/scripty-javascript-inject/milkbiaeapddfnpenedfgbfdacpbcbam
2. Add New Script
3. Javascript Code 에 아래 코드 복사
4. Run script if -> URL -> Contains 조건에 작성댓글 페이지 주소 넣기 (네이버카페 -> 나의활동 -> 내가 쓴 댓글보기 우클릭 -> 링크 주소 복사)
5. Trigger -> Automatically -> On Page Load
4번에서 복사해넣은 주소로 접속하면 대충 1초에 한페이지씩 삭제됩니다. 다 삭제되면 scripty 에서 스크립트 비활성화 하면 됨.
*/
setTimeout(() => {
let myScript=document.createElement("script");
myScript.innerHTML=`window.confirm=(...args)=>true`;
document.body.appendChild(myScript);
document.getElementById('chk_all').click();
setTimeout(() => document.querySelector('.post_btns button').click(), 200);
}, 300);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment