From 2dabeaf373404e1a23a6393b9e074b02ca7fa1bc Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sun, 20 Oct 2019 17:18:58 +0200 Subject: [PATCH] Maintenance background.js: sort & delete obsolete sites Sites only in remove_cookies settings are obsolete because cookies are erased by default (when not in allow_cookies). --- background.js | 91 +++++++++++++++++++++------------------------------ 1 file changed, 38 insertions(+), 53 deletions(-) diff --git a/background.js b/background.js index 847babe..3bfd0e7 100644 --- a/background.js +++ b/background.js @@ -101,74 +101,59 @@ const restrictions = { // Don't remove cookies before page load const allow_cookies = [ -'asia.nikkei.com', -'nytimes.com', -'wsj.com', -'ft.com', 'ad.nl', +'asia.nikkei.com', +'bostonglobe.com', +'chicagobusiness.com', +'demorgen.be', +'denverpost.com', +'economist.com', 'ed.nl', +'examiner.com.au', +'ft.com', +'hbr.org', +'medium.com', +'mercurynews.com', +'mexiconewsdaily.com', +'nymag.com', +'nytimes.com', 'parool.nl', +'telegraaf.nl', +'the-american-interest.com', +'theadvocate.com.au', +'theage.com.au', +'theaustralian.com.au', 'trouw.nl', 'vn.nl', 'volkskrant.nl', -'mercurynews.com', -'theage.com.au', -'economist.com', -'bostonglobe.com', -'denverpost.com', -'chicagobusiness.com', -'theadvocate.com.au', -'examiner.com.au', -'hbr.org', -'medium.com', 'washingtonpost.com', -'nymag.com', -'theaustralian.com.au', -'telegraaf.nl', // keep accept cookies -'demorgen.be', -'mexiconewsdaily.com', -'the-american-interest.com' +'wsj.com' ] // Removes cookies after page load const remove_cookies = [ -'asia.nikkei.com', 'ad.nl', -'ed.nl', -'vn.nl', -'ft.com', -'mercurynews.com', -'theage.com.au', -'economist.com', +'asia.nikkei.com', +'bloombergquint.com', 'bostonglobe.com', -'wired.com', -'denverpost.com', 'chicagobusiness.com', -'harpers.org', -'theadvocate.com.au', -'examiner.com.au', -'lesechos.fr', -'liberation.fr', -'hbr.org', -'theatlantic.com', -'medium.com', -'mexiconewsdaily.com', -'foreignpolicy.com', -'wsj.com', -'seattletimes.com', -'thenewsrep.com', -'washingtonpost.com', -'sfchronicle.com', -'nymag.com', -'scientificamerican.com', -'telegraaf.nl', -'thestar.com', -'qz.com', 'demorgen.be', -'sloanreview.mit.edu', -'zeit.de', -'firstthings.com', -'bloombergquint.com' +'denverpost.com', +'economist.com', +'ed.nl', +'examiner.com.au', +'ft.com', +'hbr.org', +'medium.com', +'mercurynews.com', +'mexiconewsdaily.com', +'nymag.com', +'telegraaf.nl', +'theadvocate.com.au', +'theage.com.au', +'vn.nl', +'washingtonpost.com', +'wsj.com' ] // Override User-Agent with Googlebot