diff --git a/zapzap/__init__.py b/zapzap/__init__.py index 67df43fc..9398d114 100644 --- a/zapzap/__init__.py +++ b/zapzap/__init__.py @@ -22,7 +22,7 @@ __whatsapp_url__ = 'https://web.whatsapp.com/' # Link para pegar o userAgent: http://httpbin.org/user-agent -__user_agent__ = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36" +__user_agent__ = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36" # iniciando os paths from PyQt6.QtCore import QFileInfo diff --git a/zapzap/engine/whatsapp.py b/zapzap/engine/whatsapp.py index 31e2b970..f1fa673f 100644 --- a/zapzap/engine/whatsapp.py +++ b/zapzap/engine/whatsapp.py @@ -98,6 +98,9 @@ def closeConversation(self): document.getElementsByClassName("o--vV wGJyi")[0].style.display = "none"; } function getMoreOptions() { + if (document.getElementsByClassName("_26lC3").length == 7){ + return document.getElementsByClassName("_26lC3")[5]; + } return document.getElementsByClassName("_26lC3")[4]; } function invokeEscKey() { @@ -119,7 +122,7 @@ def closeConversation(self): invokeEscKey(); return; } - var index = buttons.length === 9 ? 4 : 2; + var index = buttons.length === 9 ? 2 : 2; buttons[index].click() hideOptions(); }, 1);