-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathSendMultippleTImesToSamePerson.js
More file actions
27 lines (23 loc) · 1.02 KB
/
Copy pathSendMultippleTImesToSamePerson.js
File metadata and controls
27 lines (23 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// This piece of code is written by Anurag Sahu
// Code for sending a text to someone on whatsapp via Whatsapp web multiple time
// Steps to do it
// 1. Open Whatsapp web on your browser Chrome (https://web.whatsapp.com/)
// 2. Scan the QR Code
// 3. Select the person you want to send the text
// 4. press clt + shift + j
// 5. In developer Console paste the code
// 6. Change the text "Sample Texts" in the code by your message like "Hey Bro!!"
// 7. Send Enter
// Note Make sure your mobile has Internet Connection
var count = 100 // 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._3pkkz > div._1Plpp > div > div._2S1VP.copyable-text.selectable-text');
textbox.textContent = "Sample Text!!";
textbox.dispatchEvent(event);
document.querySelector("#main > footer > div._3pkkz > div > button > span").click();
}