-
-
Save asifvora/427eb83bafc35928acd180956359644c to your computer and use it in GitHub Desktop.
const timeoutPromise = (timeout) => new Promise((resolve) => setTimeout(resolve, timeout)); | |
const list = document.querySelectorAll('.L3NKy'); | |
function clikOnLink(link){ | |
link.click(); | |
} | |
const asyncLoop = async () => { | |
for (let i = 0; i < list.length ; i++) { | |
await timeoutPromise(1000); | |
clikOnLink(list[i]); | |
} | |
} | |
asyncLoop(); |
Your code work, thank you)
Stops working after like 25 adds.
how do I use it? I have to run on chrome evaluation?
How do we run it?
Alguem sabe como executar??
Press f12 and open console, put code there and press enter
I've made a feel changes
`const timeoutPromise = (timeout) => new Promise((resolve) => setTimeout(resolve, timeout));
const list = document.querySelectorAll('.L3NKy');
function clikOnLink(link){
if(link.TextContent == 'Seguir' ){
link.click();
}
}
const asyncLoop = async () => {
for (let i = 0; i < list.length ; i++) {
if(list[i].TextContent == 'Seguir' ){
clikOnLink(list[i]);
await timeoutPromise(1000);
}else{
await timeoutPromise(0);
}
}
}
`
well this just only follow the random people but i need something else
Your code work, thank you)
Bro how to use
How to use it?