From 661d328ca134e74d104812479b583abd0ec37b8d Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sun, 21 Jun 2020 14:32:38 +0200 Subject: [PATCH] Remove KleineZeitung.at (obsolete) --- README.md | 3 +-- background.js | 5 ++--- lp/manifest.json | 1 - sites.js | 1 - 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e3e32e2..1a622c8 100644 --- a/README.md +++ b/README.md @@ -177,8 +177,7 @@ Install add-on by downloading xpi-file. [Valeurs Actuelles](https://www.valeursactuelles.com) ##### Germany/Austria [Frankfurter Allgemeine Zeitung](https://www.faz.net) - -[Handelsblatt](https://www.handelsblatt.com) - -[Kleine Zeitung](https://www.kleinezeitung.at) +[Handelsblatt](https://www.handelsblatt.com) ##### Italy [Corriere Della Sera](https://www.corriere.it) - [Il Manifesto](https://ilmanifesto.it) - diff --git a/background.js b/background.js index bbca976..b7fbc6d 100644 --- a/background.js +++ b/background.js @@ -44,7 +44,6 @@ var allow_cookies = [ 'independent.ie', 'inkl.com', 'intelligentinvestor.com.au', -'kleinezeitung.at', 'lc.nl', 'lrb.co.uk', 'mexiconewsdaily.com', @@ -437,7 +436,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) { // this fixes images not being loaded on cooking.nytimes.com main page // referrer has to be *nytimes.com otherwise returns 403 requestHeader.value = 'https://cooking.nytimes.com'; - } else if (matchUrlDomain(['clarin.com', 'kleinezeitung.at', 'fd.nl'], details.url)) { + } else if (matchUrlDomain(['clarin.com', 'fd.nl'], details.url)) { requestHeader.value = 'https://www.facebook.com/'; } else { requestHeader.value = 'https://www.google.com/'; @@ -453,7 +452,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) { // otherwise add it if (!setReferer) { - if (matchUrlDomain(['clarin.com', 'kleinezeitung.at', 'fd.nl'], details.url)) { + if (matchUrlDomain(['clarin.com', 'fd.nl'], details.url)) { requestHeaders.push({ name: 'Referer', value: 'https://www.facebook.com/' diff --git a/lp/manifest.json b/lp/manifest.json index 3f8aefd..e54b882 100644 --- a/lp/manifest.json +++ b/lp/manifest.json @@ -120,7 +120,6 @@ "*://*.irishtimes.com/*", "*://*.japantimes.co.jp/*", "*://*.journalnow.com/*", - "*://*.kleinezeitung.at/*", "*://*.labusinessjournal.com/*", "*://*.ladepeche.fr/*", "*://*.lanacion.com.ar/*", diff --git a/sites.js b/sites.js index 02bfbdf..d844949 100644 --- a/sites.js +++ b/sites.js @@ -68,7 +68,6 @@ var defaultSites = "Inkl": "inkl.com", "Intelligent Investor": "intelligentinvestor.com.au", "Irish Independent": "independent.ie", - "Kleine Zeitung": "kleinezeitung.at", "L'Écho": "lecho.be", "L'Opinion": "lopinion.fr", "La Dépêche": "ladepeche.fr",