From cc8fb3c30436c63e169dd4a2a76c9fbf4ba7409a Mon Sep 17 00:00:00 2001 From: cloudflaredns Date: Mon, 20 May 2019 14:37:52 +0000 Subject: [PATCH] Upload files to 'addon_firefox/whyrejectme' --- addon_firefox/whyrejectme/bg.js | 5 +++-- addon_firefox/whyrejectme/log.js | 4 ++-- addon_firefox/whyrejectme/manifest.json | 7 ++++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/addon_firefox/whyrejectme/bg.js b/addon_firefox/whyrejectme/bg.js index a60583fa1..3c21ffbce 100644 --- a/addon_firefox/whyrejectme/bg.js +++ b/addon_firefox/whyrejectme/bg.js @@ -1,8 +1,9 @@ let history = {}; browser.webRequest.onResponseStarted.addListener(i => { - if (i.statusCode == 403) { + if ([403,406,410,451,462].includes(i.statusCode)) { let iFQDN = (new URL(i.url)).hostname; + if (iFQDN == 'searxes.eu.org'||iFQDN == 'searxes.nmqnkngye4ct7bgss4bmv5ca3wpa55yugvxen5kz2bbq67lwy6ps54yd.onion'){return;} let iServer = 'Unknown'; i.responseHeaders.forEach(x => { if (x.name == 'Server') { @@ -10,7 +11,7 @@ browser.webRequest.onResponseStarted.addListener(i => { } }); let iDate = (new Date()).toUTCString(); - history[iFQDN] = [i.url, iServer, iDate]; + history[iFQDN] = [i.url, iServer, i.statusCode, iDate]; } return; }, { diff --git a/addon_firefox/whyrejectme/log.js b/addon_firefox/whyrejectme/log.js index 8ea37c787..e3f7d3f0d 100644 --- a/addon_firefox/whyrejectme/log.js +++ b/addon_firefox/whyrejectme/log.js @@ -4,11 +4,11 @@ function newrow(w) { tr.innerHTML = w; } -newrow('FQDNServerWhereWhen'); +newrow('FQDNServerCodeWhereWhen'); browser.runtime.sendMessage('get').then(g => { for (let k in g) { - newrow('' + k + '' + g[k][1] + 'Link' + g[k][2] + ''); + newrow('' + k + '' + g[k][1] + '' + g[k][2] + 'Link' + g[k][3] + ''); document.getElementById('export').innerHTML += k + "\n"; } }); diff --git a/addon_firefox/whyrejectme/manifest.json b/addon_firefox/whyrejectme/manifest.json index 87f2bf717..c614d28fc 100644 --- a/addon_firefox/whyrejectme/manifest.json +++ b/addon_firefox/whyrejectme/manifest.json @@ -2,8 +2,9 @@ "manifest_version": 2, "name": "Which website rejected me?", "description": "Your website rejected me, but I know I'm going to be okay.", - "version": "1.0.0", - "author": "Maslin Bossé", + "version": "1.0.2", + "homepage_url": "https://searxes.eu.org/", + "author": "Searxes #Addon", "permissions": [ "webRequest", "" @@ -25,7 +26,7 @@ "gecko": { "id": "urejectme@searxes.danwin1210.me", "strict_min_version": "56.0", - "update_url":"https://searxes.danwin1210.me/collab/addon/au.php?for=ureject" + "update_url":"https://searxes.eu.org/collab/addon/au.php?for=ureject" } } } \ No newline at end of file