📅  最后修改于: 2022-03-11 15:02:20.340000             🧑  作者: Mango
let likes = 0;
setInterval(() => {
const heart = document.querySelector('svg[aria-label="Like"]').parentNode;
const arrow = document.querySelector('a.coreSpriteRightPaginationArrow');
if (heart) {
heart.click()
likes++;
console.log(`You've liked ${likes} post(s)`);
}
arrow.click();
}, 5000);