###
👽⚠️ 𝗧𝗵𝗶𝘀 𝘀𝗰𝗿𝗶𝗽𝘁 𝗶𝘀 𝗷𝘂𝘀𝘁 𝘁𝗵𝗲 𝘁𝗼𝗼𝗹 𝗳𝗼𝗿 𝗲𝗱𝘂𝗰𝗮𝘁𝗶𝗼𝗻𝗮𝗹 𝗮𝗻𝗱 𝘁𝗲𝘀𝘁𝗶𝗻𝗴 𝗽𝘂𝗿𝗽𝗼𝘀𝗲𝘀 ⚠️👽
###
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.