Here is small JS Script for sending a message in a loop.
Steps to Do it:-
- Open Whatsapp web on your browser Chrome (https://web.whatsapp.com/)
- Scan the QR Code
- Select the person you want to send the text
- press clt + shift + j
- In developer Console paste the code and press Enter.
- Enter the text you want to send repeatedly in the alert box.
- Now enter the number of times you want to send it.
Note Make sure your mobile has Internet Connection
var message = prompt("Enter the message");
var count = prompt("Enter the Number of times"); // Change the Number to change
var looper = 0;
for(looper=0;looper<count;looper++)
{
window.InputEvent = window.Event || window.InputEvent;
var d = new Date();
var event = new InputEvent('input', {bubbles: true});
var textbox= document.querySelector('#main > footer > div.vR1LG._3wXwX.copyable-area > div._2A8P4 > div > div._2_1wd.copyable-text.selectable-text');
textbox.textContent = message;
textbox.dispatchEvent(event);
var b = document.querySelectorAll('#main > footer > div.vR1LG._3wXwX.copyable-area > div:nth-child(3) > button')[0]
b.click();
}