Maybe you're using the bountyfollowers service to help you earn followers on Twitter?
You may be tired of refreshing the page 3 or 4 times a day and click on the buttons stupidly?
This little script can help you.
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function auto(){
var d = new Date();
console.log(d.toTimeString() + "Try to refresh");
document.querySelectorAll("button.btn-bitbucket")[0].click();
await sleep(1000 * 10); // Wait 10s
console.log("Try to follow");
var buttons = document.querySelectorAll("button.pull-right");
console.log("Found " + buttons.length + " to follow");
for (i = 0; i < buttons.length; i++) {
buttons[i].click();
console.log("Followed.");
await sleep(1000 * 2 + 1000 * 10 * Math.random()); // Wait 2s + random 0-10s
}
console.log("Done wait for next round.");
await sleep(1000 * 60 * 10 + 1000 * 60 * 10 * Math.random()); // 10mn + random 0-10mn
auto();
}
auto();
The principle is quite simple, you have to:
- open the website
https://www.bountyfollowers.com/#/follow in a tab
- open the Chrome debug console
- run the script
- and leave the tab open
How does the script work?The script tries to refresh the list of followers every 10 minutes (+ an entropy of max 10mn).
If followers are identified, the script will click on the buttons every 2s (+ an entropy of max 10s).
And once more.
How to open the Google Chrome console?The easiest way is to right-click on the page and click Inspect.
Then select the Console tab
![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2FFdKLmdX.png&t=663&c=iZkEKS316h0NmQ)
This is where you have to copy and paste the code and press Enter to execute it.
Here you can seat back and relax or do more interesting activities
![Wink](https://bitcointalk.org/Smileys/default/wink.gif)
Note: I don't indorse and suggest you to use this service you better try to get followers the right way.