From ad49a8a33a735ccc4943dd1c6e36361b11d0c816 Mon Sep 17 00:00:00 2001 From: cesar Date: Sun, 21 Mar 2021 23:47:58 +0100 Subject: [PATCH] Delete 'addons/urejectCR/bg.js' --- addons/urejectCR/bg.js | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 addons/urejectCR/bg.js diff --git a/addons/urejectCR/bg.js b/addons/urejectCR/bg.js deleted file mode 100644 index c879253a4..000000000 --- a/addons/urejectCR/bg.js +++ /dev/null @@ -1,34 +0,0 @@ -let history = {}; -chrome.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']); -chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { - if (request && sender) { - if (request == 'get') { - sendResponse(history); - } - if (request == 'clear') { - history = {}; - sendResponse(true); - } - } -}); -chrome.browserAction.onClicked.addListener(() => { - chrome.runtime.openOptionsPage(); -}); \ No newline at end of file