Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify the sending time from 250ms to 1500ms #69

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,28 @@ No WhatsApp Web abra o console do Browser
Cole o código no console e aperte Enter

Pronto

---

# SendScriptWhatsApp

Code to send the entire script of Shrek or Bee Movie to your friends or WhatsApp groups.

## Usage

Open [shrekSendScript.js](https://github.com/Matt-Fontes/SendScriptWhatsApp/blob/main/shrekSendScript.js)
Or
Open [beeMovieSendScript.js](https://github.com/Matt-Fontes/SendScriptWhatsApp/blob/main/beeMovieSendScript.js)

Copy the entire content (click on raw -> ctrl+a -> ctrl+c)

In WhatsApp Web, open the Browser console

| ⚠️ Important Notice, in a recent update of Google Chrome, any script being pasted into the Console is being prevented.|
|--|
| ***To workaround this issue, the developer console expects to receive a textual confirmation by writing in the console: "allow-scripts"***|
|After that, pasting and continuing the script execution will be allowed|

Paste the code into the console and press Enter

Ready
2 changes: 1 addition & 1 deletion beeMovieSendScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async function enviarScript(scriptText){
(main.querySelector(`[data-testid="send"]`) || main.querySelector(`[data-icon="send"]`)).click();
}, 100);

if(lines.indexOf(line) !== lines.length - 1) await new Promise(resolve => setTimeout(resolve, 250));
if(lines.indexOf(line) !== lines.length - 1) await new Promise(resolve => setTimeout(resolve, 1500));
}

return lines.length;
Expand Down
2 changes: 1 addition & 1 deletion shrekSendScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async function enviarScript(scriptText){
(main.querySelector(`[data-testid="send"]`) || main.querySelector(`[data-icon="send"]`)).click();
}, 100);

if(lines.indexOf(line) !== lines.length - 1) await new Promise(resolve => setTimeout(resolve, 250));
if(lines.indexOf(line) !== lines.length - 1) await new Promise(resolve => setTimeout(resolve, 1500));
}

return lines.length;
Expand Down