From 0e901da7bff97167f18050dbc23a93d722041b01 Mon Sep 17 00:00:00 2001 From: cesar Date: Sun, 21 Mar 2021 23:48:01 +0100 Subject: [PATCH] Delete 'addons/urejectCR/log.js' --- addons/urejectCR/log.js | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 addons/urejectCR/log.js diff --git a/addons/urejectCR/log.js b/addons/urejectCR/log.js deleted file mode 100644 index eea04f6b..00000000 --- a/addons/urejectCR/log.js +++ /dev/null @@ -1,38 +0,0 @@ -function newrow(w) { - let tt = document.getElementsByTagName('tbody')[0]; - let tr = tt.insertRow(tt.rows.length); - tr.innerHTML = w; -} -document.addEventListener('DOMContentLoaded', () => { - chrome.storage.local.get(['ul'], (r) => { - fetch('i18n/' + (r.ul || 'eo') + '.json', { - method: 'GET' - }).then(j => j.json()).then(j => { - document.querySelectorAll('span[transk]').forEach(x => { - x.innerText = j[x.getAttribute('transk')]; - }); - newrow('FQDN' + j['lj1'] + '' + j['lj2'] + '' + j['lj3'] + '' + j['lj4'] + ''); - 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); - }); - }); - document.getElementById('myul').addEventListener('change', () => { - if (document.getElementById('myul').value != '') { - chrome.storage.local.set({ - 'ul': document.getElementById('myul').value - }, () => { - location.reload(true); - }); - } - }); -}); \ No newline at end of file