From 2f8ebe988d4c3e7c8a7bf13742602ffbd8152353 Mon Sep 17 00:00:00 2001 From: UnitasBrooks Date: Sun, 11 Dec 2016 15:37:47 -0800 Subject: [PATCH] added a link to get the json for each conversation --- index.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.html b/index.html index bba444a..bdfb704 100644 --- a/index.html +++ b/index.html @@ -213,11 +213,19 @@

Hangouts.json Reader

function switchConvo(id){ $('.txt').text(''); + $('.txt').append("Get JSON
"); for(var event_id in Conversations[id]){ var convo_event = Conversations[id][event_id]; $('.txt').append(convo_event.sender + ": " + convo_event.message + "\n"); } } + function jsonView(id){ + var blob = new Blob([JSON.stringify(Conversations[id])], {type: 'text/plain'}); + var url = window.URL.createObjectURL(blob); + window.open(url, '_blank'); + window.focus(); + } +