Skip to content

Instantly share code, notes, and snippets.

@scriptnull
Created April 10, 2015 19:28
Show Gist options
  • Save scriptnull/b370a990423f48221f22 to your computer and use it in GitHub Desktop.
Save scriptnull/b370a990423f48221f22 to your computer and use it in GitHub Desktop.
Spam the facebook chats with help of fbspam.js
var message = "Testing Facebook Spam Script."; //spam message
var interval = 1 ; // in seconds
var count = 1000 ; //number of times to send
var notifyInterval = 5 ; //notify
var i = 0 ;
var timer = setInterval(function(){
document.getElementsByClassName('uiTextareaNoResize uiTextareaAutogrow _1rv')[0].value = message;
document.getElementsByClassName('_1ri uiButton uiButtonConfirm')[0].children[0].click();
i++;
if( i == count )
clearInterval(timer);
if( i % notifyInterval == 0)
console.log(i + ' MESSAGES SENT');
} , interval * 1000 ) ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment