Untitled
unknown
plain_text
3 years ago
604 B
19
Indexable
async function removeLikes() {
let likeButtons = Array.from(document.querySelectorAll("[data-testid='unlike']"));
let i = 0;
async function removeLike() {
if (i >= likeButtons.length) {
window.scrollTo(0, document.body.scrollHeight);
await new Promise(resolve => setTimeout(resolve, 2000));
likeButtons = Array.from(document.querySelectorAll("[data-testid='unlike']"));
i = 0;
removeLike();
return;
}
likeButtons[i].click();
i++;
await new Promise(resolve => setTimeout(resolve, 500));
removeLike();
}
removeLike();
}
removeLikes();
Editor is loading...