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

Update beeMovieSendScript.js #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
46 changes: 24 additions & 22 deletions beeMovieSendScript.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
function enviarScript(scriptText) {
const lines = scriptText.split('\n');
function enviarScript ( scriptText ) {
linhas const = scriptText . dividir ( "\ n" ) ;

let i = 0;
deixe i = 0 ;

setInterval(() => {
if (i >= lines.length) return;
setInterval ( ( ) => {
if ( i > = linhas . comprimento ) return

if (lines[i].trim() != '') {
console.log(lines[i]);
if ( linhas [ i ] . trim ( ) ! = '' ) {
console . log ( linhas [ i ] ) ;

janela . InputEvent = janela . Evento || janela . InputEvent ;

const event = new InputEvent ( 'input' , { bubbles : true } ) ;

const textbox = document . querySelector ( '#main div._13NKt' ) ;

caixa de texto . textContent = linhas [ i ] ;

caixa de texto . dispatchEvent ( evento ) ;

documento . querySelector ( "#main span [data-testid = send]" ) . clique ( ) ;

window.InputEvent = window.Event || window.InputEvent;

const event = new InputEvent('input', { bubbles: true });

const textbox = document.querySelector('div._2_1wd[data-tab="6"]');

textbox.textContent = lines[i];
}
i ++ ;
} , 250 )
}

textbox.dispatchEvent(event);
enviarScript ( `bee movie

document.querySelector('button._1E0Oz').click();
}
i++;
}, 250);
}

enviarScript(`
BEE Movie

Written by Jerry Seinfeld & Andy Robin & Barry Marder & Spike Feresten

Expand Down