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. 👍
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("_2_1wd copyable-text selectable-text")[1];
for (let index = 0; index < counter; index++) {
  textbox.innerHTML = message;
  textbox.dispatchEvent(event);
  document.getElementsByClassName("_1E0Oz")[0].click();
}