diff --git a/README.md b/README.md index 25cfd32..86dc437 100644 --- a/README.md +++ b/README.md @@ -7,47 +7,26 @@ Steps to Do it:- 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 - +5. In developer Console paste the code and press Enter. +6. Enter the text you want to send repeatedly in the alert box. +7. Now enter the number of times you want to send it. - -var count = 100 // Change the Number to change - - -var looper = 0 - - +Note Make sure your mobile has Internet Connection -for(looper=0;looper - -{ - - - window.InputEvent = window.Event || window.InputEvent; - - - var d = new Date(); - - +``` +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 - - var textbox= document.querySelector('#main > footer > div._3pkkz > div._1Plpp > div > div._2S1VP.copyable- -text.selectable-text'); - - - textbox.textContent = "Sample Text"; - - + var textbox= document.querySelector('#main >footer>div._2i7Ej>div._13mgZ>div._3FeAD>div._3u328 '); + + textbox.textContent = message; textbox.dispatchEvent(event); - - - document.querySelector("#main > footer > div._3pkkz > div > button > span").click(); - - -} - + var b = document.querySelectorAll('#main >footer>div._2i7Ej>div.hnQHL')[1]; + b.querySelector('button ').click(); +} +``` diff --git a/SendMultippleTImesToSamePerson.js b/SendMultippleTImesToSamePerson.js index 67484ad..6e03c12 100644 --- a/SendMultippleTImesToSamePerson.js +++ b/SendMultippleTImesToSamePerson.js @@ -12,16 +12,18 @@ // Note Make sure your mobile has Internet Connection -var count = 100 // Change the Number to change -var looper = 0 +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 footer > div._3pkkz > div._1Plpp > div > div._2S1VP.copyable-text.selectable-text'); + var textbox= document.querySelector('#main >footer>div._2i7Ej>div._13mgZ>div._3FeAD>div._3u328 '); - textbox.textContent = "Sample Text!!"; + textbox.textContent = message; textbox.dispatchEvent(event); - document.querySelector("#main > footer > div._3pkkz > div > button > span").click(); + var b = document.querySelectorAll('#main >footer>div._2i7Ej>div.hnQHL')[1]; + b.querySelector('button ').click(); }