Last active
February 19, 2022 14:00
-
-
Save lucianobragaweb/54f27435210535325cc8576580e2bc5d to your computer and use it in GitHub Desktop.
Script para Curtir no Facebook automaticamente.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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