showing results for - "how to like posts on instagram js"
Gabriela
26 Feb 2016
1let likes = 0;
2setInterval(() => {
3    const heart = document.querySelector('svg[aria-label="Like"]').parentNode;
4    const arrow = document.querySelector('a.coreSpriteRightPaginationArrow');
5    if (heart) {
6        heart.click()
7        likes++;
8        console.log(`You've liked ${likes} post(s)`);
9    }
10    arrow.click();
11}, 5000);