Skip to content

Instantly share code, notes, and snippets.

@sepehrmm
sepehrmm / whatsapp.js
Created May 20, 2017 21:24
Read WhatsApp Web messages without opening to stop blue ticks appearing
chatHistory = Store.Chat.models.filter(function(a) {
if (a.name == "PUT YOUR CONTACT'S NAME HERE.") {
return true
}
})[0].msgs.models;
for (i = chatHistory.length - 1; i >= 0; i--) {
console.log(chatHistory[i].attributes.body);
}
package main
import(
"fmt"
"time"
"github.com/sparrc/go-ping"
)
func main(){
pinger, err := ping.NewPinger("www.atroot.com")
if err != nil {