function newrow(w) { let tt = document.getElementsByTagName('tbody')[0]; let tr = tt.insertRow(tt.rows.length); tr.innerHTML = w; } newrow('FQDNServerCodeWhereWhen'); browser.runtime.sendMessage('get').then(g => { for (let k in g) { newrow('' + k + '' + g[k][1] + '' + g[k][2] + 'Link' + g[k][3] + ''); document.getElementById('export').innerHTML += k + "\n"; } }); document.body.style.display = 'block'; document.getElementById('clear').addEventListener('click', () => { browser.runtime.sendMessage('clear').then(() => { location.reload(true); }); });