Created
May 30, 2020 21:55
-
-
Save groupunknown/1e373d2dab16eada5812da6b90526106 to your computer and use it in GitHub Desktop.
Bot comment facebook mobile
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
/** | |
* https://stackoverflow.com/a/62103618/9537649 | |
* https://m.facebook.com/${author}/posts/${postId} | |
*/ | |
function start() { | |
setTimeout(function() { | |
const rand = Math.floor(Math.random() * 767) + 1 + Math.random().toString(36).substr(2, 5); | |
document.querySelector("input[name='comment_text']").value = rand; | |
const submitButton = document.querySelector("button[name='submit']"); | |
submitButton.disabled = false; | |
submitButton.click(); | |
start(); | |
}, 3000); | |
} | |
start(); // unlimited | |
function start(counter){ | |
if(counter < 250){ | |
setTimeout(function(){ | |
counter++; | |
const rand = Math.floor(Math.random() * 767) + 1 + Math.random().toString(36).substr(2, 5); | |
document.querySelector("input[name='comment_text']").value = rand; | |
const submitButton = document.querySelector("button[name='submit']"); | |
submitButton.disabled = false; | |
submitButton.click(); | |
start(counter); | |
}, 3000); | |
} | |
} | |
start(0); // limit 250 comment |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment