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).
This commit is contained in:
magnolia1234 2019-10-20 17:18:58 +02:00 committed by GitHub
parent 6f294e6a3b
commit 2dabeaf373

View File

@ -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