-
-
Save igormuba/f37b8630cadbb511c53e7765de34bc6c to your computer and use it in GitHub Desktop.
Spam messages to WhatsApp counting from 0
This file contains hidden or 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
// 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); |
Work in 11-02-2021
`
var delay = 3000; //delay in seconds
var message = prompt("Insira a mensagem: ");
textbox = $('._1hRBM').querySelectorAll('._1awRl')[0];
setInterval(function(){
window.InputEvent = window.Event || window.InputEvent;
var event = new InputEvent('input', {
bubbles: true
});
textbox.textContent = message;
textbox.dispatchEvent(event);
document.getElementsByClassName('_2Ujuu')[0].click();
}, delay);
`
How do you recognize the classes of the textbox and the button?
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
Funcionando em 28/04/2020
var delay = 0;
var message = prompt("Send Message : ");
setInterval(function () {
window.InputEvent = window.Event || window.InputEvent;
var event = new InputEvent('input', {
bubbles: true
});
var textbox = document.querySelector('div._2S1VP[data-tab="1"]');
textbox.textContent = message;
textbox.dispatchEvent(event);
document.querySelector("button._35EW6").click();
// $("button._35EW6").click();
}, delay * 1000);