From 000f417a0e2dfe9e99b347fe83c1367609c5a914 Mon Sep 17 00:00:00 2001 From: Jai Kumar Dewani Date: Mon, 27 Aug 2018 22:57:11 +0530 Subject: [PATCH 01/11] Added option for Inputs from alert box --- SendMultippleTImesToSamePerson.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SendMultippleTImesToSamePerson.js b/SendMultippleTImesToSamePerson.js index 67484ad..6790586 100644 --- a/SendMultippleTImesToSamePerson.js +++ b/SendMultippleTImesToSamePerson.js @@ -11,9 +11,9 @@ // 7. Send Enter // 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'); - textbox.textContent = "Sample Text!!"; + textbox.textContent = message; textbox.dispatchEvent(event); document.querySelector("#main > footer > div._3pkkz > div > button > span").click(); } From 7ffd8abbb93e08229216e9bc3efcaa183cdbaa1c Mon Sep 17 00:00:00 2001 From: Jai Kumar Dewani Date: Wed, 29 Aug 2018 07:02:14 +0530 Subject: [PATCH 02/11] Updated README.md --- README.md | 49 +++++++++++++------------------------------------ 1 file changed, 13 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index 25cfd32..2b26cc2 100644 --- a/README.md +++ b/README.md @@ -12,42 +12,19 @@ Steps to Do it:- 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 - -{ - - - 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._3pkkz > div._1Plpp > div > div._2S1VP.copyable-text.selectable-text'); + + textbox.textContent = message; textbox.dispatchEvent(event); - - document.querySelector("#main > footer > div._3pkkz > div > button > span").click(); - - -} - +} +''' From 25585ac97f7bd19242ce89da011899d2d490c193 Mon Sep 17 00:00:00 2001 From: Jai Kumar Dewani Date: Wed, 29 Aug 2018 07:04:42 +0530 Subject: [PATCH 03/11] Updated README.md --- README.md | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 2b26cc2..ac10790 100644 --- a/README.md +++ b/README.md @@ -12,19 +12,17 @@ Steps to Do it:- 7. Send Enter 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 footer > div._3pkkz > div._1Plpp > div > div._2S1VP.copyable-text.selectable-text'); - - textbox.textContent = message; - textbox.dispatchEvent(event); - document.querySelector("#main > footer > div._3pkkz > div > button > span").click(); -} -''' + +'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');' + 'textbox.textContent = message;' + 'textbox.dispatchEvent(event);' + 'document.querySelector("#main > footer > div._3pkkz > div > button > span").click();' +'}' From f557a2c4b1c507ddaf1230502de7d93082459646 Mon Sep 17 00:00:00 2001 From: Jai Kumar Dewani Date: Wed, 29 Aug 2018 07:06:00 +0530 Subject: [PATCH 04/11] Updated README.md --- README.md | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index ac10790..ac68790 100644 --- a/README.md +++ b/README.md @@ -12,17 +12,19 @@ Steps to Do it:- 7. Send Enter 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 footer > div._3pkkz > div._1Plpp > div > div._2S1VP.copyable-text.selectable-text');' - 'textbox.textContent = message;' - 'textbox.dispatchEvent(event);' - 'document.querySelector("#main > footer > div._3pkkz > div > button > span").click();' -'}' +``` +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'); + + textbox.textContent = message; + textbox.dispatchEvent(event); + document.querySelector("#main > footer > div._3pkkz > div > button > span").click(); +} +``` From 2d31233a733fd162c2c263257a22eb7065223b86 Mon Sep 17 00:00:00 2001 From: Jai Kumar Dewani Date: Mon, 10 Sep 2018 00:17:44 +0530 Subject: [PATCH 05/11] Update readme.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ac68790..2c2c9bd 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,10 @@ 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 +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. + Note Make sure your mobile has Internet Connection ``` From c7f2fb0563acd652e25e72f6066f4347d56c5f0c Mon Sep 17 00:00:00 2001 From: Jai Kumar Dewani Date: Wed, 7 Aug 2019 23:36:02 +0530 Subject: [PATCH 06/11] Updated main.js Whatsapp's web interface changed their internal html structure hence this had to be updated --- SendMultippleTImesToSamePerson.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SendMultippleTImesToSamePerson.js b/SendMultippleTImesToSamePerson.js index 6790586..6e03c12 100644 --- a/SendMultippleTImesToSamePerson.js +++ b/SendMultippleTImesToSamePerson.js @@ -11,6 +11,7 @@ // 7. Send Enter // 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; @@ -19,9 +20,10 @@ 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 = 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(); } From 16adaf0a867a48469137b25522f98be447a1e50d Mon Sep 17 00:00:00 2001 From: Jai Kumar Dewani Date: Thu, 8 Aug 2019 01:46:11 +0530 Subject: [PATCH 07/11] updated README.md Updated the code section with main.js --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2c2c9bd..86dc437 100644 --- a/README.md +++ b/README.md @@ -22,10 +22,11 @@ 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 = 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(); } ``` From 1913d0599ddb8851acd2bd84af09ee9562a0f14f Mon Sep 17 00:00:00 2001 From: Jai Kumar Dewani Date: Fri, 18 Dec 2020 16:43:21 +0530 Subject: [PATCH 08/11] Update script --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 86dc437..531d3c8 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,11 @@ for(looper=0;looperfooter>div._2i7Ej>div._13mgZ>div._3FeAD>div._3u328 '); + var textbox= document.querySelector('#main > footer > div._3SvgF._1mHgA.copyable-area > div.DuUXI > div > div._1awRl.copyable-text.selectable-text'); textbox.textContent = message; textbox.dispatchEvent(event); - var b = document.querySelectorAll('#main >footer>div._2i7Ej>div.hnQHL')[1]; - b.querySelector('button ').click(); + var b = document.querySelectorAll('#main > footer > div._3SvgF._1mHgA.copyable-area > div:nth-child(3) > button')[0] + b.click(); } ``` From b4e1e54d78a68f856fa19fb9d88281301f24da91 Mon Sep 17 00:00:00 2001 From: Jai Kumar Dewani Date: Fri, 18 Dec 2020 16:46:55 +0530 Subject: [PATCH 09/11] Update SendMultippleTImesToSamePerson.js --- SendMultippleTImesToSamePerson.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SendMultippleTImesToSamePerson.js b/SendMultippleTImesToSamePerson.js index 6e03c12..f35fea2 100644 --- a/SendMultippleTImesToSamePerson.js +++ b/SendMultippleTImesToSamePerson.js @@ -1,4 +1,4 @@ -// This piece of code is written by Anurag Sahu +// This piece of code is written by Anurag Sahu and edited by Jai Kumar Dewani // Code for sending a text to someone on whatsapp via Whatsapp web multiple time // Steps to do it @@ -20,10 +20,10 @@ for(looper=0;looperfooter>div._2i7Ej>div._13mgZ>div._3FeAD>div._3u328 '); + var textbox= document.querySelector('#main > footer > div._3SvgF._1mHgA.copyable-area > div.DuUXI > div > div._1awRl.copyable-text.selectable-text'); textbox.textContent = message; textbox.dispatchEvent(event); - var b = document.querySelectorAll('#main >footer>div._2i7Ej>div.hnQHL')[1]; - b.querySelector('button ').click(); + var b = document.querySelectorAll('#main > footer > div._3SvgF._1mHgA.copyable-area > div:nth-child(3) > button')[0] + b.click(); } From d42a16ec04c5784b093239912df5e1081f240f55 Mon Sep 17 00:00:00 2001 From: Jai Kumar Dewani Date: Tue, 9 Mar 2021 00:18:22 +0530 Subject: [PATCH 10/11] Update README.md --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 531d3c8..e0add99 100644 --- a/README.md +++ b/README.md @@ -13,20 +13,20 @@ Steps to Do it:- Note Make sure your mobile has Internet Connection -``` +```js 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._3SvgF._1mHgA.copyable-area > div.DuUXI > div > div._1awRl.copyable-text.selectable-text'); - - textbox.textContent = message; - textbox.dispatchEvent(event); - var b = document.querySelectorAll('#main > footer > div._3SvgF._1mHgA.copyable-area > div:nth-child(3) > button')[0] - b.click(); + 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(); } ``` From cb9266a377e6e55dfdd64101b4d2525933345abb Mon Sep 17 00:00:00 2001 From: Jai Kumar Dewani Date: Tue, 9 Mar 2021 00:18:40 +0530 Subject: [PATCH 11/11] Update SendMultippleTImesToSamePerson.js --- SendMultippleTImesToSamePerson.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/SendMultippleTImesToSamePerson.js b/SendMultippleTImesToSamePerson.js index f35fea2..65d0ea9 100644 --- a/SendMultippleTImesToSamePerson.js +++ b/SendMultippleTImesToSamePerson.js @@ -17,13 +17,13 @@ var count = prompt("Enter the Number of times"); // Change the Number to change var looper = 0; for(looper=0;looper footer > div._3SvgF._1mHgA.copyable-area > div.DuUXI > div > div._1awRl.copyable-text.selectable-text'); - - textbox.textContent = message; - textbox.dispatchEvent(event); - var b = document.querySelectorAll('#main > footer > div._3SvgF._1mHgA.copyable-area > div:nth-child(3) > button')[0] - b.click(); + 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(); }