Skip to content

Instantly share code, notes, and snippets.

@yusufneeson
Created April 23, 2022 07:20
Show Gist options
  • Select an option

  • Save yusufneeson/4c1e184eb1e8bb7c92aa8700fbc290a4 to your computer and use it in GitHub Desktop.

Select an option

Save yusufneeson/4c1e184eb1e8bb7c92aa8700fbc290a4 to your computer and use it in GitHub Desktop.
JS: instagram clicker like
let interval;
const startLike = (time=15000) => {
interval = setInterval(() => {
try{
if (!document.querySelector('.fr66n button.wpO6b [aria-label="Batal Suka"]')) {
document.querySelector('.fr66n button.wpO6b').click();
}
setTimeout(() => {
document.querySelector("body > div._2dDPU.QPGbb.CkGkG > div.EfHg9 > div > div > div.l8mY4 > button").click()
}, 2000);
}catch(e) {
console.log(`Err: ${document.location.href} - ${e}`);
}
}, time)
}
const stopLike = () => {
if (interval) {
clearInterval(interval);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment