Skip to content

Instantly share code, notes, and snippets.

@lucianobragaweb
Last active February 19, 2022 14:00
Show Gist options
  • Save lucianobragaweb/54f27435210535325cc8576580e2bc5d to your computer and use it in GitHub Desktop.
Save lucianobragaweb/54f27435210535325cc8576580e2bc5d to your computer and use it in GitHub Desktop.
Script para Curtir no Facebook automaticamente.
var HTMLTagA= document.getElementsByTagName("a");
var cnt= 0;
var i= 0;
var randon = 150; // Internavo Inicial
var TimerFunCall = setInterval(Timer, randon);
function Timer() {
if (i < HTMLTagA.length){
if(HTMLTagA[i].outerHTML.contains('UFILikeLink')) {
cnt = cnt + 1;
var randon = Math.floor(Math.random() * 503) + 152; // Intervalo randomico
console.log ("Clicou em Curtir: " + cnt + " Intervalo: " + randon); // Mostra mensagem no console
HTMLTagA[i].click();
}
} else {
console.log('Total de Links Processados: ' + HTMLTagA.length);
clearInterval(TimerFunCall);
}
i = i + 1;
return i;
}
// Mais detalhes no artigo: https://medium.com/lucianobragaweb/586507e7b8d8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment