Created
June 19, 2022 09:27
-
-
Save arshad-yaseen/ff3747f1ca5c0876cbe99b041abc58e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let followbutton = document.querySelectorAll('.PolarisIGButton')[1] || document.querySelectorAll('._acan')[0] | |
let unfollowbutton = document.querySelectorAll('.PolarisIGButton')[1] || document.querySelectorAll('._acan')[0] | |
let timeBetweenClick = 2000; | |
let timeBetweenFollowUnfollow = 30000; | |
let iterateCount = 9; | |
let timeBetweenSessions = 3600000; | |
let followedUnfollowedCount = 0; | |
let maximumInstagramAllowedFollowCount = 145; | |
function startClick() { | |
followedUnfollowedCount += 1; | |
setTimeout(() => { | |
followbutton.click(); | |
}, 0); | |
setTimeout(() => { | |
unfollowbutton.click(); | |
}, timeBetweenClick); | |
timeBetweenClick += timeBetweenClick; | |
setTimeout(() => { | |
document.querySelector('._a9--').click() | |
}, timeBetweenClick); | |
timeBetweenClick = 2000; | |
} | |
function startBot() { | |
let count = 1; | |
let minusCount = timeBetweenFollowUnfollow; | |
let botStartTimer = 30 | |
setInterval(()=> { | |
if(botStartTimer > 0 && botStartTimer <= 30) { | |
console.log('Bot starts in : ' + botStartTimer) | |
} | |
botStartTimer = botStartTimer - 1 | |
},1000) | |
setInterval(() => { | |
if (count <= iterateCount && followedUnfollowedCount < maximumInstagramAllowedFollowCount) { | |
count = count + 1; | |
startClick(); | |
} else { | |
minusCount += timeBetweenFollowUnfollow; | |
setTimeout(() => { | |
count = 1; | |
}, timeBetweenSessions - minusCount); | |
} | |
}, timeBetweenFollowUnfollow); | |
} | |
startBot(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment