JSFiddle - React, Tailwind, and code Playground

by frogggeee McFrogggeee

JavaScript

// work on removing the usernames that were already followed. and return the amount of usernames that will be followed, along with the estimated AFK time.
let people = prompt("enter the usernames");
people = people.split(",");
let number = 0;

function follow() {
for (let i = 0; i < 5;i++) {
$.ajax({type: "PUT",url: "https://scratch.mit.edu/site-api/users/followers/" + people[number] + "/add/",data: {usernames: Scratch.INIT_DATA.LOGGED_IN_USER.model.username}});
number++;
}
}
follow();
setInterval(follow, 61000);