When I enter the following JavaScript statement in the browser console:
inbreedingInvite('74011','107433','');
and press enter, it sends an invitation to user number 107433 to join group id 74011. If I want to invite another user, I have to manually change the user number.
Is there a way to automate this process? So far, I've come up with this solution:
(function myLoop (i) {
setTimeout(function () {
console.log("inbreedingInvite('74011','" + i + "','');"); // your code here
if (--i) myLoop(i); // decrement i and call myLoop again if i > 0
}, 1000)
})(10);
However, this code only outputs the statement in the console and does not actually execute it on the webpage.