Open corresponding page and run following in browser console. Inspired by gist1.
setInterval(() => {
for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
d.click()
}
window.scrollTo(0, document.body.scrollHeight)
}, 1000)
setInterval(() => {
for (const d of document.querySelectorAll('div[data-testid="unretweet"]')) {
d.click();
for (const c of document.querySelectorAll('div[data-testid="unretweetConfirm"]')) { c.click(); }
}
window.scrollTo(0, document.body.scrollHeight)
}, 1000)
setInterval(() => {
for (const d of document.querySelectorAll('div[data-testid="caret"]')) {
d.click();
for (const c of document.querySelectorAll('div[data-testid="Dropdown"]')) {
if (c.firstChild.getElementsByTagName('div')[1].firstChild.firstChild.innerText == "Delete") {
c.firstChild.click();
for (const e of document.querySelectorAll('div[data-testid="confirmationSheetConfirm"]')) {
e.click();
}
}
}
}
window.scrollTo(0, document.body.scrollHeight)
}, 1000)
setInterval(() => {
for (const d of document.querySelectorAll('div[data-testid="caret"]')) {
d.click();
for (const c of document.querySelectorAll('div[data-testid="Dropdown"]')) {
if (c.firstChild.getElementsByTagName('div')[1].firstChild.firstChild.innerText == "Delete") {
c.firstChild.click();
for (const e of document.querySelectorAll('div[data-testid="confirmationSheetConfirm"]')) {
e.click();
}
}
}
}
window.scrollTo(0, document.body.scrollHeight)
}, 1000)
setInterval(() => {
for (const d of document.querySelectorAll('div[data-testid="UserCell"]')) {
const more = d.firstChild.childNodes[1].firstChild.childNodes[1].childNodes[2].firstChild;
if (!more) {
continue;
}
more.click();
for (const d of document.querySelectorAll('div[data-testid="removeFollower"]')) {
d.click();
for (const d of document.querySelectorAll('div[data-testid="confirmationSheetConfirm"]')) { d.click(); }
}
}
window.scrollTo(0, document.body.scrollHeight)
}, 1000)