Skip to content

Instantly share code, notes, and snippets.

@igormuba
Forked from yask123/whatsapp_sendMSG.js
Last active November 9, 2022 02:32
Show Gist options
  • Save igormuba/f37b8630cadbb511c53e7765de34bc6c to your computer and use it in GitHub Desktop.
Save igormuba/f37b8630cadbb511c53e7765de34bc6c to your computer and use it in GitHub Desktop.
Spam messages to WhatsApp counting from 0
// Are you new to Javascript?
//Just copy, open firefox (did not work on Google Chrome for me)
//press f12, go console tab, paste, change according to instructions and press enter
//Thank you rafaelxavierborges for providing the message sending code
//I have just turned it into a spammer that counts from 0 and send the next number every second
var t=0; //what is the first number you want to send
var i=1; //delay in seconds
setInterval(function(){
window.InputEvent = window.Event || window.InputEvent;
var d = new Date();
var event = new InputEvent('input', {bubbles: true});
var textbox = $('div._2S1VP');
textbox.textContent = t; //if you want to send something else change it in here
textbox.dispatchEvent(event); $("button._35EW6").click();
t++; //want to get fancy and send multiples of 2? change to t=t*2; for example (must start counting at one then duh)
i=i*1000;
}, i);
@sayhicoelho
Copy link

An example of sending spam messages on WhatsApp working on 2022-11-08: https://github.com/Matt-Fontes/SendScriptWhatsApp/blob/main/shrekSendScript.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment