Revisiones de Bulk Delete Reddit Posts & Comments History
Bulk Delete Reddit Posts & Comments History por Glench
2 revisiones
- Se valoró con 3 de 5by Usuario de Firefox 11608340, hace un añoNot 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);
\\\ - Se valoró con 3 de 5by fartdog, hace 2 añosTakes a lot of unnecessary finagling to make it work, but it works.