Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to like posts on instagram js

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);
 
PREVIOUS NEXT
Tagged: #posts #instagram #js
ADD COMMENT
Topic
Name
9+1 =