How can we send message multiple time to a specific person or group in whatsapp using loop

+1 vote
I want to send "Hello"  message to my friend 100 times. How can i do that?
Feb 28, 2020 in Java-Script by kartik
• 37,530 points
2,566 views

1 answer to this question.

0 votes

Hii @kartik,

 This is simple task to send single message multiple time to your friend you need to follow the steps bellow:

1.Open your whatsapp web and log in.

2. Select the contact you want to send.

3.Open console:
                      For chrome:Ctrl+Shift+J (on Windows)  or Cmd+Option+J (on Mac).

                      For Firefox: Ctrl+Shift+J (on Windows) or Cmd+Shift+J (on Mac).

4.Copy paste the below script in console and press Enter.

var randomTexts=["Hi","Hello","Please reply me"];
window.InputEvent = window.Event || window.InputEvent;
var event = new InputEvent('input', {bubbles: true});
var textbox = document.getElementsByClassName("_3u328")[0];
setInterval(function(){ textbox.innerHTML = randomTexts[Math.floor((Math.random() * randomTexts.length) + 0)];
textbox.dispatchEvent(event);
document.getElementsByClassName("_3M-N-")[0].click() ; }, 1000);

Tips

  1.  To Change message :Using this code will sent messages from randomText string array. Each message will be selected randomly from the array and sent to the contact. You can use your own strings or single string inside this.
  2. Change time between each message:Using this code, messages will be sent at 1 message per second (1000 milliseconds). To change this you can change the 1000 milliseconds given for setInterval function at line 7 to any milliseconds rate you want.

For your Reference find the image attached below:

answered Feb 28, 2020 by Niroj
• 82,780 points
cannot set property of inerhtml??

Hello,

Have you paste the above script into your browser console?

Wow!!  I didn't know that is even possible...Thanxxx for the trick mate

Related Questions In Java-Script

0 votes
1 answer

How to check if a specific key is present in a hash or not?

Hello @kartik, While Hash#has_key? gets the job done, as it has ...READ MORE

answered Jul 24, 2020 in Java-Script by Niroj
• 82,780 points
946 views
0 votes
1 answer

How to open a URL in a new Tab using JavaScript or jQuery?

Hello @kartik, Use window.open(): var win = window.open('http://edureka.co/', '_blank'); if (win) ...READ MORE

answered Aug 25, 2020 in Java-Script by Niroj
• 82,780 points
1,926 views
0 votes
1 answer

How can we access PHP variables in JavaScript or jQuery rather than <?php echo $variable ?>

Hello @kartik, You can also use json_encode for ...READ MORE

answered Apr 29, 2020 in Java-Script by Niroj
• 82,780 points
4,813 views
0 votes
1 answer

How to Get values from a specific user - queryset in Django?

Hello @kartik, You can get the list of Users ...READ MORE

answered May 28, 2020 in Java-Script by Niroj
• 82,780 points
3,188 views
0 votes
1 answer

What are the vulnerability related to PHP Form?

Hii, The $_SERVER["PHP_SELF"] variable can be used by ...READ MORE

answered Feb 13, 2020 in PHP by Niroj
• 82,780 points
454 views
0 votes
1 answer

Error:npm not working after clearing cache

Hello @kartik, Try this: npm cache clean --force OR It ...READ MORE

answered Jul 17, 2020 in Node-js by Niroj
• 82,780 points
2,516 views
0 votes
1 answer
0 votes
0 answers

Anyone can help me out to understand the semantic of (document.getElementBYId("demo").innerHTML="Hello") ?

Hello guys, Can Someone helps me to find ...READ MORE

Jan 17, 2020 in Web Development by anonymous
• 37,530 points
196 views
0 votes
1 answer

How can I send a message to a particular client with socket.io?

Hii, You can try the code below: io.to(socket.id).emit("event", data); whenever ...READ MORE

answered Apr 27, 2020 in Java-Script by Niroj
• 82,780 points
13,639 views
0 votes
1 answer

How to send data in request body with a GET when using jQuery $.ajax()?

Hello @kartik, Sending the data in your scenario,I ...READ MORE

answered Jun 18, 2020 in Java-Script by Niroj
• 82,780 points
9,727 views