Skip to content

santiagom91/Whatsapp-spam-bot-send-messages-on-loop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 

Repository files navigation

Whatsapp-spam-bot-send-messages-on-loop

Steps to send whatsapp messages on loop: -

  1. Open Whatsapp web.
  2. Click on the person you want to send messages on loop.
  3. then open the browser console.
  4. copy the code from below.
  5. paste the code in browser console.
  6. Hit enter then it will ask you to type your message and the number of times you want to send the message.
  7. Done. 👍

NOTE: there are two class names that are keep on changing, so if this code throws any error then just inspect the textbox of whatsapp and change the class name accoring to that in 5th line of code. and same for send button in 9th line.

var message = prompt("Enter your message", "‎");
var counter = parseInt(prompt("How many Times ?", 10));
window.InputEvent = window.Event || window.InputEvent;
var event = new InputEvent("input", { bubbles: true });
var textbox = document.getElementsByClassName("_13NKt copyable-text selectable-text")[1];
for (let index = 0; index < counter; index++) {
  textbox.innerHTML = message;
  textbox.dispatchEvent(event);
  document.getElementsByClassName("_4sWnG")[0].click();
}

About

A JS script to send whatsapp messages on loop.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published