From 2df0f81f71263697fdbe05aac11b3a25c845cde9 Mon Sep 17 00:00:00 2001 From: cloudflarevirus Date: Sun, 25 Aug 2019 02:42:43 +0200 Subject: [PATCH] Delete 'addon_chrome/whyrejectme/bg.js' --- addon_chrome/whyrejectme/bg.js | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 addon_chrome/whyrejectme/bg.js diff --git a/addon_chrome/whyrejectme/bg.js b/addon_chrome/whyrejectme/bg.js deleted file mode 100644 index dca137e27..000000000 --- a/addon_chrome/whyrejectme/bg.js +++ /dev/null @@ -1,34 +0,0 @@ -let history = {}; - -chrome.webRequest.onResponseStarted.addListener(i => { - 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') { - iServer = x.value; - } - }); - let iDate = (new Date()).toUTCString(); - history[iFQDN] = [i.url, iServer, i.statusCode, iDate]; - } - return; -}, { - urls: ['http://*/*', 'https://*/*'], - types: ['main_frame'] -}, ['responseHeaders']); - -chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { - if (request && sender) { - if (request == 'get') { - sendResponse(history); - } - if (request == 'clear') { - history = {}; - sendResponse(true); - } - } -}); \ No newline at end of file