Bulk Delete Reddit Posts & Comments History 的评价
Bulk Delete Reddit Posts & Comments History 作者: Glench
2 条评价
- 评分 3 / 5来自 Firefox 用户 11608340,1 年前Not payed for it, used this script in the console to delete more than 50 comments.
Delete button after it's done deleting hit F12, Ctrl+R to refresh the page Ctrl+V for the code hit enter Ctrl+R after done repeat ad nauseam:
\\\
let intervalId = setInterval(() => {
try {
const deleteButton = document.querySelector('a.togglebutton[data-event-action="delete"]');
const changeStateButtons = document.querySelectorAll('a.yes[onclick*="change_state"]');
console.log('Delete button:', deleteButton);
console.log('Change state buttons:', changeStateButtons);
if (deleteButton && changeStateButtons.length >= 2) {
deleteButton.click();
changeStateButtons[0].click();
changeStateButtons[1].click();
} else {
console.error('Elements not found or not enough change state buttons');
clearInterval(intervalId);
}
} catch (error) {
console.error('An error occurred:', error);
clearInterval(intervalId);
}
}, 500);
\\\