From 11b50087bdc5c31c4c983c558610ab26e1219318 Mon Sep 17 00:00:00 2001 From: cesar Date: Sun, 21 Mar 2021 23:52:17 +0100 Subject: Update 'addons/code/ureject/README.md' --- addons/code/ureject/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 addons/code/ureject/README.md (limited to 'addons/code/ureject') diff --git a/addons/code/ureject/README.md b/addons/code/ureject/README.md new file mode 100644 index 00000000..fe092128 --- /dev/null +++ b/addons/code/ureject/README.md @@ -0,0 +1,14 @@ +[//]: # (do not edit me; start) + +Versio: _1.0.5.1_ + +[//]: # (do not edit me; end) + + +- [Pli informo / Elŝuto](../../../subfiles/about.urjm.md) +- Malgarantio: Ĉi tio NE estas spegulo de suprenflua deponejo. Sinkronigado eble prokrastas. + +----- + +- [More information / Download](../../../subfiles/about.urjm.md) +- Disclaimer: This is NOT a mirror of upstream repository. Synchronization may be delayed. -- cgit v1.2.3 From c57b1203f6b8cda72de9e3c0b6b7236dc4ed7af8 Mon Sep 17 00:00:00 2001 From: cesar Date: Sun, 21 Mar 2021 23:52:46 +0100 Subject: Update 'addons/code/ureject/bg.js' --- addons/code/ureject/bg.js | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 addons/code/ureject/bg.js (limited to 'addons/code/ureject') diff --git a/addons/code/ureject/bg.js b/addons/code/ureject/bg.js new file mode 100644 index 00000000..8172f96a --- /dev/null +++ b/addons/code/ureject/bg.js @@ -0,0 +1,34 @@ +let history = {}; +browser.webRequest.onResponseStarted.addListener(i => { + if ([403, 406, 410, 429, 451, 462].includes(i.statusCode)) { + let iFQDN = (new URL(i.url)).hostname; + if (['sercxi.eu.org', 'ansero.eu.org', 'sercxi.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion', 'ansero.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion'].includes(iFQDN)) { + return; + } + let iServer = '?'; + i.responseHeaders.forEach(x => { + if (x.name.toLowerCase() == 'server') { + iServer = x.value; + } + }); + history[iFQDN] = [i.url, iServer, i.statusCode, (new Date()).toUTCString()]; + } + return; +}, { + urls: ['http://*/*', 'https://*/*'], + types: ['main_frame'] +}, ['responseHeaders']); +browser.runtime.onMessage.addListener((request, sender, sendResponse) => { + if (request && sender) { + if (request == 'get') { + sendResponse(history); + } + if (request == 'clear') { + history = {}; + sendResponse(true); + } + } +}); +browser.browserAction.onClicked.addListener(() => { + browser.runtime.openOptionsPage(); +}); \ No newline at end of file -- cgit v1.2.3 From eca3c056c3bf81d041d5b430c98b8959029ad07a Mon Sep 17 00:00:00 2001 From: cesar Date: Sun, 21 Mar 2021 23:53:21 +0100 Subject: Update 'addons/code/ureject/log.html' --- addons/code/ureject/log.html | 134 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+) create mode 100644 addons/code/ureject/log.html (limited to 'addons/code/ureject') diff --git a/addons/code/ureject/log.html b/addons/code/ureject/log.html new file mode 100644 index 00000000..abb12288 --- /dev/null +++ b/addons/code/ureject/log.html @@ -0,0 +1,134 @@ + + + + + 📝 + + +

+ 🕵
+ + +
+
+

+ 🖹
+ +
+

+ 💬 Internacio
+ + + + \ No newline at end of file -- cgit v1.2.3 From 89b1343ca61b3864b1a2e3832ca4b7132d6be488 Mon Sep 17 00:00:00 2001 From: cesar Date: Sun, 21 Mar 2021 23:53:37 +0100 Subject: Update 'addons/code/ureject/log.js' --- addons/code/ureject/log.js | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 addons/code/ureject/log.js (limited to 'addons/code/ureject') diff --git a/addons/code/ureject/log.js b/addons/code/ureject/log.js new file mode 100644 index 00000000..14c08782 --- /dev/null +++ b/addons/code/ureject/log.js @@ -0,0 +1,38 @@ +function newrow(w) { + let tt = document.getElementsByTagName('tbody')[0]; + let tr = tt.insertRow(tt.rows.length); + tr.innerHTML = w; +} +document.addEventListener('DOMContentLoaded', () => { + browser.storage.local.get(['ul']).then((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'] + ''); + browser.runtime.sendMessage('get').then(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', () => { + browser.runtime.sendMessage('clear').then(() => { + location.reload(true); + }); + }); + document.getElementById('myul').addEventListener('change', () => { + if (document.getElementById('myul').value != '') { + browser.storage.local.set({ + 'ul': document.getElementById('myul').value + }).then(() => { + location.reload(true); + }); + } + }); +}); \ No newline at end of file -- cgit v1.2.3 From 66fe679cb3bf95f559e230a6fd2017d62da55751 Mon Sep 17 00:00:00 2001 From: cesar Date: Sun, 21 Mar 2021 23:53:52 +0100 Subject: Update 'addons/code/ureject/manifest.json' --- addons/code/ureject/manifest.json | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 addons/code/ureject/manifest.json (limited to 'addons/code/ureject') diff --git a/addons/code/ureject/manifest.json b/addons/code/ureject/manifest.json new file mode 100644 index 00000000..f53e98a0 --- /dev/null +++ b/addons/code/ureject/manifest.json @@ -0,0 +1,39 @@ +{ + "manifest_version": 2, + "name": "Kiu retejo malakceptis min?", + "description": "Via retejo malakceptis min, sed mi scias ke mi fartos bone.", + "version": "1.0.5.1", + "homepage_url": "https://sercxi.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/", + "author": "Ss", + "permissions": [ + "storage", + "webRequest", + "" + ], + "icons": { + "72": "icons/72.png" + }, + "background": { + "scripts": [ + "bg.js" + ] + }, + "options_ui": { + "browser_style": false, + "open_in_tab": true, + "page": "log.html" + }, + "browser_action": { + "browser_style": true, + "default_icon": { + "72": "icons/72.png" + } + }, + "applications": { + "gecko": { + "id": "urejectme@searxes.eu.org", + "strict_min_version": "68.0", + "update_url": "https://api.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/_/addon.php?for=ureject" + } + } +} \ No newline at end of file -- cgit v1.2.3