Skip to content

Instantly share code, notes, and snippets.

@j0eii
Last active June 8, 2018 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j0eii/4bf55cc65506a2054778eca6e479de67 to your computer and use it in GitHub Desktop.
Save j0eii/4bf55cc65506a2054778eca6e479de67 to your computer and use it in GitHub Desktop.
Whatsapp SendMsg
function sendMessage(message) {
var evt = new Event('input', {
bubbles: true
});
var input = document.querySelector("div.input");
input.innerHTML = message;
input.dispatchEvent(evt);
document.querySelector(".icon-send").click();
}
var fuckU = setInterval(function () {sendMessage('Wak Up 食飯屌你老未');},500);
@j0eii
Copy link
Author

j0eii commented Jun 8, 2018

function sendMessage(message) {
var evt = new Event('input', {
bubbles: true
});

var input = document.querySelector("div.input");
input.innerHTML = message;
input.dispatchEvent(evt);

document.querySelector(".icon-send").click();

}
var timeleft = 180;

var fuckU = setInterval(function () {if (timeleft > 0){sendMessage('Time to preorder -'+(timeleft-=30) +'s left ');}},30000);
fuckU();

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