aboutsummaryrefslogtreecommitdiffstats
path: root/addons/urejectCR/log.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/urejectCR/log.js')
-rw-r--r--addons/urejectCR/log.js38
1 files changed, 0 insertions, 38 deletions
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('<tr><td><b>FQDN</b></td><td><b>' + j['lj1'] + '</b></td><td><b>' + j['lj2'] + '</b></td><td><b>' + j['lj3'] + '</b></td><td><b>' + j['lj4'] + '</b></td></tr>');
- chrome.runtime.sendMessage('get', g => {
- for (let k in g) {
- newrow('<tr><td>' + k + '</td><td>' + g[k][1] + '</td><td>' + g[k][2] + '</td><td><a href="' + g[k][0] + '" rel="noreferrer noopener" target="_blank"> &#128279; </a></td><td>' + g[k][3] + '</td></tr>');
- 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