Skip to content

Instantly share code, notes, and snippets.

@dilverdev
Last active February 25, 2020 03:46
Show Gist options
  • Save dilverdev/871761783e6839b87629fabe61751087 to your computer and use it in GitHub Desktop.
Save dilverdev/871761783e6839b87629fabe61751087 to your computer and use it in GitHub Desktop.
loop comment facebook mobile web
setInterval(() => {
const newNumber = Math.floor(Math.random() * 10)
document.querySelector("#composerInput").value = 'soy otro del oto boot ' + newNumber
document.querySelector("#u_0_3o > input[type=hidden]").value = 'soy otro del oto boot ' + newNumber
document.querySelector("#comment_form_100000476487163_4034457913246718 > div._7om2._2pin._2pi8._4-vo > div:nth-child(3) > button").disabled = false;
document.querySelector("#comment_form_100000476487163_4034457913246718 > div._7om2._2pin._2pi8._4-vo > div:nth-child(3) > button").click();
}, 5000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment