From ccea78983064a5ed355f4ac6808becd597d7d981 Mon Sep 17 00:00:00 2001 From: Ivan Babrou <7fe82a138a5365a1fb70f0b3ae2afd10d13c5cc4@cloudflare.com> Date: Thu, 20 Aug 2020 09:57:53 +0200 Subject: [PATCH] log.js --- addons/urejectCR/log.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/addons/urejectCR/log.js b/addons/urejectCR/log.js index 945c9b46d..5117e5de5 100644 --- a/addons/urejectCR/log.js +++ b/addons/urejectCR/log.js @@ -1 +1,18 @@ -. \ No newline at end of file +function newrow(w) { + let tt = document.getElementsByTagName('tbody')[0]; + let tr = tt.insertRow(tt.rows.length); + tr.innerHTML = w; +} +newrow('FQDNServiloStatoKieKiam'); +chrome.runtime.sendMessage('get', g => { + for (let k in g) { + newrow('' + k + '' + g[k][1] + '' + g[k][2] + ' 🔗 ' + g[k][3] + ''); + document.getElementById('export').innerHTML += k + "\n"; + } +}); +document.body.style.display = 'block'; +document.getElementById('clear').addEventListener('click', () => { + chrome.runtime.sendMessage('clear', () => { + location.reload(true); + }); +}); \ No newline at end of file