Created
June 8, 2022 20:03
-
-
Save AScriver/b164ec8ba3ae4b5b5a895123d72c6a0d to your computer and use it in GitHub Desktop.
Delete Reddit Comments
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
// Navigate to 'https://old.reddit.com/user/[YourUsername]/comments/' & paste into console | |
var deleteBtns = document.querySelectorAll(".del-button") | |
var count = deleteBtns.length | |
for(let i=0; i <= count; i++){ | |
setTimeout((ix) => { | |
deleteBtns[ix].querySelector('.togglebutton ').click() | |
setTimeout( deleteBtns[ix].querySelector('.yes').click() ,1) | |
}, 1000 * i, i) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment