{"id":21721771,"url":"https://github.com/vncsmnl/whatsappscripts","last_synced_at":"2025-10-04T05:22:10.379Z","repository":{"id":211190357,"uuid":"702217219","full_name":"vncsmnl/WhatsAppScripts","owner":"vncsmnl","description":"⌨️ Trava Zap para você mandar pro seu amigo. Tem vários filmes, séries e músicas.","archived":false,"fork":false,"pushed_at":"2025-04-30T18:28:35.000Z","size":758,"stargazers_count":113,"open_issues_count":0,"forks_count":33,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-25T16:02:12.451Z","etag":null,"topics":["portfolio","travazap","whatsapp","whatsapp-script"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vncsmnl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-10-08T20:37:30.000Z","updated_at":"2025-05-22T19:17:32.000Z","dependencies_parsed_at":"2025-05-18T15:19:01.953Z","dependency_job_id":null,"html_url":"https://github.com/vncsmnl/WhatsAppScripts","commit_stats":null,"previous_names":["vncsmnl/whatsappscripts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vncsmnl/WhatsAppScripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vncsmnl%2FWhatsAppScripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vncsmnl%2FWhatsAppScripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vncsmnl%2FWhatsAppScripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vncsmnl%2FWhatsAppScripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vncsmnl","download_url":"https://codeload.github.com/vncsmnl/WhatsAppScripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vncsmnl%2FWhatsAppScripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278266896,"owners_count":25958733,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["portfolio","travazap","whatsapp","whatsapp-script"],"created_at":"2024-11-26T02:19:00.767Z","updated_at":"2025-10-04T05:22:10.336Z","avatar_url":"https://github.com/vncsmnl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Video Demo Tutorial: https://www.youtube.com/watch?v=RG-dclLtYvA\n\n# WhatsAppScripts TravaZap\n\n- [Overview](#overview)\n- [Prerequisites](#prerequisites)\n- [Usage](#usage)\n- [Parameters](#parameters)\n- [Error Handling](#error-handling)\n- [Example](#example)\n\n## Overview\n\nThe `enviarScript` function is an asynchronous JavaScript function designed to send a series of messages to a conversation on a web page. It splits the provided script text into lines, simulates user input by typing each line into the conversation textarea, and then clicks the send button to dispatch the messages.\n\n## Prerequisites\n\nREQUIREMENT: WhatsApp Web Version\nhttps://web.whatsapp.com/\n\nBefore using the `enviarScript` function, ensure the following:\n\n- The script is executed in an environment with access to the DOM (Document Object Model) as it interacts with web page elements.\n- The conversation must be open and accessible in the DOM.\n- The function is called with the appropriate permissions, considering browser security restrictions.\n\n## Usage\n\n1. Include the script containing the `enviarScript` function in your HTML document.\n2. Ensure the conversation is open and accessible in the DOM.\n3. Press F12, open console tab and paste raw script.\n4. Enter to the `enviarScript` function with the desired script text.\n\n## Parameters\n\n- `scriptText`: A string containing the script to be sent as messages. Each line in the script will be treated as a separate message.\n\n## Error Handling\n\nThe function may throw an error if no conversation is open. Ensure that a conversation is active in the DOM before calling the function.\n\n## Example\n\n```javascript\n// Example script to be sent\nconst script = `\nColoque o seu texto aqui\nPut your text here\n`;\n\n// Calling the enviarScript function\nenviarScript(script, 2000)\n    .then(e =\u003e console.log(`Código finalizado, ${e} mensagens enviadas`))\n    .catch(console.error);\n```\n\nIn this example, the `enviarScript` function is called with a multi-line script, and the completion message or error is logged to the console.\n\nFeel free to customize the script and adapt the function to fit your specific use case.\n\n## 📝 License.\n\n[![License](https://img.shields.io/github/license/vncsmnl/WhatsAppScripts?style=flat\u0026logo=github\u0026color=blue)](https://github.com/vncsmnl/WhatsAppScripts/blob/main/LICENSE)\n\n```\n            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n                    Version 2, December 2004\n\n Copyright (C) 2004 Sam Hocevar \u003csam@hocevar.net\u003e\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n  0. You just DO WHAT THE FUCK YOU WANT TO.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvncsmnl%2Fwhatsappscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvncsmnl%2Fwhatsappscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvncsmnl%2Fwhatsappscripts/lists"}