Skip to content

Instantly share code, notes, and snippets.

View kevinresol's full-sized avatar
💭
Stand with Hong Kong

Kevin Leung kevinresol

💭
Stand with Hong Kong
View GitHub Profile
@kevinresol
kevinresol / WhatsappWebSend.js
Created January 28, 2018 15:38
Automate message sending in active chat for Whatsapp Web
function send(message) {
var input = document.querySelector('div.pluggable-input-body.copyable-text.selectable-text');
input.innerText = message;
input.dispatchEvent(new InputEvent('input', {
inputType: 'insertText',
data: message,
bubbles: true,
cancelable: false,
composed: true,
detail: 0,
@kevinresol
kevinresol / Main.hx
Last active April 8, 2021 12:17
Coconut Animation
import haxe.Timer;
import tink.state.Observable;
import coconut.ui.View;
import coconut.ui.RenderResult;
import coconut.ui.Renderer;
import tink.pure.List;
using tink.CoreApi;