Skip to content

Instantly share code, notes, and snippets.

@neurobin
Forked from yask123/whatsapp_sendMSG.js
Created September 3, 2018 09:54
Show Gist options
  • Save neurobin/8b9c9f52c49aa1a610d3900c31339531 to your computer and use it in GitHub Desktop.
Save neurobin/8b9c9f52c49aa1a610d3900c31339531 to your computer and use it in GitHub Desktop.
Send messages on whatsapp by Javascript
document.getElementsByClassName("input")[1].innerHTML="This message was written via JS script! "; // Fills the text box message
var input = document.getElementsByClassName("icon btn-icon icon-send");//Grabs the send button
input[0].click();// Clicks the send button
@neurobin
Copy link
Author

neurobin commented Sep 3, 2018

if (window.Store === undefined) {
webpackJsonp([], {"bcihgfbdeb": (x, y, z) => window.Store = z('"bcihgfbdeb"')}, "bcihgfbdeb");
webpackJsonp([], {"jfefjijii": (x, y, z) => window.Store.Conn = z('"jfefjijii"')}, "jfefjijii");
//webpackJsonp([], {"iaeeehaci": (x, y, z) => window.Store.Wap = z('"iaeeehaci"')}, "iaeeehaci");
}

@neurobin
Copy link
Author

neurobin commented Sep 3, 2018

Store.Chat.models[4].sendMessage('sending again')

@igormuba
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment