diff --git a/README.md b/README.md index 8ceece5..aa4aafd 100644 --- a/README.md +++ b/README.md @@ -212,6 +212,7 @@ So don't update to Firefox 79 or use F-droid's [Fennec-release](https://f-droid. [Sciences et Avenir](https://www.sciencesetavenir.fr) - [Valeurs Actuelles](https://www.valeursactuelles.com) ##### Germany/Austria +[Die Zeit](https://www.zeit.de) - [Frankfurter Allgemeine Zeitung](https://www.faz.net) - [Handelsblatt](https://www.handelsblatt.com) - [Süddeutsche Zeitung](https://www.sueddeutsche.de) diff --git a/background.js b/background.js index f61b214..8a08348 100644 --- a/background.js +++ b/background.js @@ -9,6 +9,7 @@ var ext_api = (typeof browser === 'object') ? browser : chrome; const restrictions = { 'barrons.com': /.+barrons\.com\/(amp\/)?article(s)?\/.+/, + 'bloombergquint.com': /^((?!\.bloombergquint\.com\/bq-blue-exclusive\/).)*$/, 'elcomercio.pe': /.+\/elcomercio.pe\/.+((\w)+(\-)+){3,}.+/, 'gestion.pe': /.+\/gestion.pe\/.+((\w)+(\-)+){3,}.+/, 'nknews.org': /^((?!\.nknews\.org\/pro\/).)*$/, @@ -76,6 +77,7 @@ var allow_cookies = [ 'volkskrant.nl', 'washingtonpost.com', 'worldpoliticsreview.com', +'zeit.de', ] // Removes cookies after page load @@ -134,6 +136,7 @@ var use_google_bot_default = [ 'washingtonpost.com', 'worldpoliticsreview.com', 'wsj.com', +'zeit.de', ]; var use_google_bot_custom = []; var use_google_bot = use_google_bot_default.concat(use_google_bot_custom); @@ -600,6 +603,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) { }); } + if (!['image', 'font', 'stylesheet'].includes(details.type)) { if (tabId !== -1) { ext_api.tabs.get(tabId, function (currentTab) { if (isSiteEnabled(currentTab) || medium_custom_domain) { @@ -632,6 +636,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) { } }); } + } return { requestHeaders: requestHeaders }; }, { diff --git a/contentScript.js b/contentScript.js index 59de822..080e704 100644 --- a/contentScript.js +++ b/contentScript.js @@ -249,8 +249,11 @@ else if (matchDomain("bloombergquint.com")) { } else if (matchDomain(["medium.com", "towardsdatascience.com"])) { - let meter = document.querySelector('#lo-highlight-meter-1-highlight-box'); - removeDOMElement(meter); + window.setTimeout(function () { + let meter = document.querySelector('[id^="lo-highlight-meter-"]'); + if (meter) + meter.hidden = true; + }, 500); // Delay (in milliseconds) } else if (matchDomain("ledevoir.com")) { @@ -624,10 +627,12 @@ else if (matchDomain('faz.net')) { str = str.replace(/Glaxo\n\nSmith\n\nKline/g, "GlaxoSmithKline"); str = str.replace(/Eu\n\nGH/g, "EuGH"); str = str.replace(/If\n\nSG/g, "IfSG"); - str = str.replace(/La\n\nPierre/g, "LaPierre"); - str = str.replace(/De\n\nJoy/g, "DeJoy"); str = str.replace(/m\n\nRNA/g, "mNRA"); - str = str.replace(/Mc\n\nCarthy/g, "McCarthy"); + str = str.replace(/St\n\nVO/g, "StVO"); + str = str.replace(/De\n\n([A-Z])/g, "De$1"); + str = str.replace(/La\n\n([A-Z])/g, "La$1"); + str = str.replace(/Le\n\n([A-Z])/g, "Le$1"); + str = str.replace(/Mc\n\n([A-Z])/g, "Mc$1"); return str; }; diff --git a/lp/manifest.json b/lp/manifest.json index 03e5ff6..c2c569f 100644 --- a/lp/manifest.json +++ b/lp/manifest.json @@ -266,6 +266,7 @@ "*://*.wired.com/*", "*://*.worldpoliticsreview.com/*", "*://*.wsj.com/*", + "*://*.zeit.de/*", "*://*.blueconic.net/*", "*://*.matheranalytics.com/*", "*://*.onecount.net/*", @@ -309,5 +310,5 @@ "webRequest", "webRequestBlocking" ], - "version": "1.8.7.1" + "version": "1.8.7.2" } \ No newline at end of file diff --git a/manifest.json b/manifest.json index 1faeccf..c6a95d9 100644 --- a/manifest.json +++ b/manifest.json @@ -40,5 +40,5 @@ "webRequest", "webRequestBlocking" ], - "version": "1.8.7.1" + "version": "1.8.7.2" } \ No newline at end of file diff --git a/sites.js b/sites.js index 57da7e6..428d9be 100644 --- a/sites.js +++ b/sites.js @@ -37,6 +37,7 @@ var defaultSites = "De Tijd": "tijd.be", "DeMorgen": "demorgen.be", "Diario Financiero": "df.cl", + "Die Zeit": "zeit.de", "Digiday": "digiday.com", "Discover Magazine": "discovermagazine.com", "Domani": "editorialedomani.it",