Created
February 9, 2024 16:04
-
-
Save ibernabel/f01540b5f5d9b324f6706af7cdfc4179 to your computer and use it in GitHub Desktop.
Revisions
-
ibernabel created this gist
Feb 9, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ setTimeout(function(){ const url = window.location.href; if(url.includes("api.whatsapp.com")){ let button = document.querySelector("#action-button"); button.click(); setTimeout(function(){ let link = document.querySelector("#fallback_block > div > div > h4:nth-child(2) > a"); link.click(); },300); } },300);