Diniz Martins

May 17, 20221 min

Spamming from WhatsApp Web

###

๐Ÿ‘ฝโš ๏ธ ๐—ง๐—ต๐—ถ๐˜€ ๐˜€๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜ ๐—ถ๐˜€ ๐—ท๐˜‚๐˜€๐˜ ๐˜๐—ต๐—ฒ ๐˜๐—ผ๐—ผ๐—น ๐—ณ๐—ผ๐—ฟ ๐—ฒ๐—ฑ๐˜‚๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป๐—ฎ๐—น ๐—ฎ๐—ป๐—ฑ ๐˜๐—ฒ๐˜€๐˜๐—ถ๐—ป๐—ด ๐—ฝ๐˜‚๐—ฟ๐—ฝ๐—ผ๐˜€๐—ฒ๐˜€ โš ๏ธ๐Ÿ‘ฝ

###

Descriptions:

  • This is script for spamming the message from WhatsApp Web;

  • It can send messages very quickly;

  • It supports emoji's too.

Usage:

โ†ณ Go to WhatsApp Web;

โ†ณ Open the console (F12);

โ†ณ Console tab;

โ†ณ Paste the code into the console and press ENTER.

async function enviarScript(scriptText){
ย 
const lines = scriptText.split(/[\n\t]+/).map(line => line.trim()).filter(line => line),
ย 
main = document.querySelector("#main"),
ย 
textarea = main.querySelector(`div[contenteditable="true"]`)
ย 

ย 
if(!textarea) throw new Error("Nรฃo hรก uma conversa aberta")
ย 

ย 
for(const line of lines){
ย 
console.log(line)
ย 

ย 
textarea.textContent = line
ย 
textarea.dispatchEvent(new InputEvent("input", { bubbles: true }));
ย 

ย 
(main.querySelector(`[data-testid="send"]`) || main.querySelector(`[data-icon="send"]`)).click()
ย 

ย 
if(lines.indexOf(line) !== lines.length - 1) await new Promise(resolve => setTimeout(resolve, 250))
ย 
}
ย 

ย 
return lines.length
ย 
}
ย 

ย 
enviarScript(`
ย 

ย 
0
ย 
1
ย 
2
ย 
3
ย 
4
ย 
5
ย 
6
ย 
7
ย 
8
ย 
9
ย 
10
ย 

ย 

ย 
`).then(e => console.log(`Cรณdigo finalizado, ${e} mensagens enviadas`)).catch(console.error)

Change the message and have fun.

    1050
    3