Patch 12/01/26 - Remold to work with the new WhatsApp feature #123
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🔧 Fix: Script compatibility with new DOM
🇺🇸 EN — Description
This pull request fixes issues that caused the script to stop working for many users after recent DOM changes.
🔴 Problems Identified
1️⃣ “Chat not open” error
This message was misleading.
It was not related to the conversation actually being closed, but rather to the script failing to locate the chat element due to changes in the DOM structure.
✅ The selector was updated to properly support the new DOM.
2️⃣
Cannot read properties of null (reading 'click')The send button was returning
nullbecause:maincontainer.click()on a non-existent element✅ The
mainlimitation was removed and button existence verification was added before calling.click().✨ Changes
Before
After
🇧🇷 PT — Descrição
Este pull request corrige problemas que fizeram o script parar de funcionar para muitos usuários após mudanças recentes no DOM.
🔴 Problemas Identificados
1️⃣ Erro “Conversa não está aberta”
Essa mensagem era enganosa.
Ela não indicava que a conversa estivesse fechada, mas sim que o script não conseguia localizar o chat devido à nova estrutura do DOM.
✅ O seletor foi ajustado para funcionar corretamente com o novo DOM.
2️⃣
Cannot read properties of null (reading 'click')O botão de envio retornava
nullporque:main.click()em um elemento inexistente✅ A limitação do
mainfoi removida e foi adicionada uma verificação antes de executar o.click().✨ Alterações
Antes
Depois