Add Die Zeit (Germany)

This commit is contained in:
magnolia1234 2020-09-24 20:50:29 +02:00
parent d54f7aa6d1
commit aa0f6e41c0
6 changed files with 20 additions and 7 deletions

View file

@ -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) - [Sciences et Avenir](https://www.sciencesetavenir.fr) -
[Valeurs Actuelles](https://www.valeursactuelles.com) [Valeurs Actuelles](https://www.valeursactuelles.com)
##### Germany/Austria ##### Germany/Austria
[Die Zeit](https://www.zeit.de) -
[Frankfurter Allgemeine Zeitung](https://www.faz.net) - [Frankfurter Allgemeine Zeitung](https://www.faz.net) -
[Handelsblatt](https://www.handelsblatt.com) - [Handelsblatt](https://www.handelsblatt.com) -
[Süddeutsche Zeitung](https://www.sueddeutsche.de) [Süddeutsche Zeitung](https://www.sueddeutsche.de)

View file

@ -9,6 +9,7 @@ var ext_api = (typeof browser === 'object') ? browser : chrome;
const restrictions = { const restrictions = {
'barrons.com': /.+barrons\.com\/(amp\/)?article(s)?\/.+/, 'barrons.com': /.+barrons\.com\/(amp\/)?article(s)?\/.+/,
'bloombergquint.com': /^((?!\.bloombergquint\.com\/bq-blue-exclusive\/).)*$/,
'elcomercio.pe': /.+\/elcomercio.pe\/.+((\w)+(\-)+){3,}.+/, 'elcomercio.pe': /.+\/elcomercio.pe\/.+((\w)+(\-)+){3,}.+/,
'gestion.pe': /.+\/gestion.pe\/.+((\w)+(\-)+){3,}.+/, 'gestion.pe': /.+\/gestion.pe\/.+((\w)+(\-)+){3,}.+/,
'nknews.org': /^((?!\.nknews\.org\/pro\/).)*$/, 'nknews.org': /^((?!\.nknews\.org\/pro\/).)*$/,
@ -76,6 +77,7 @@ var allow_cookies = [
'volkskrant.nl', 'volkskrant.nl',
'washingtonpost.com', 'washingtonpost.com',
'worldpoliticsreview.com', 'worldpoliticsreview.com',
'zeit.de',
] ]
// Removes cookies after page load // Removes cookies after page load
@ -134,6 +136,7 @@ var use_google_bot_default = [
'washingtonpost.com', 'washingtonpost.com',
'worldpoliticsreview.com', 'worldpoliticsreview.com',
'wsj.com', 'wsj.com',
'zeit.de',
]; ];
var use_google_bot_custom = []; var use_google_bot_custom = [];
var use_google_bot = use_google_bot_default.concat(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) { if (tabId !== -1) {
ext_api.tabs.get(tabId, function (currentTab) { ext_api.tabs.get(tabId, function (currentTab) {
if (isSiteEnabled(currentTab) || medium_custom_domain) { if (isSiteEnabled(currentTab) || medium_custom_domain) {
@ -632,6 +636,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
} }
}); });
} }
}
return { requestHeaders: requestHeaders }; return { requestHeaders: requestHeaders };
}, { }, {

View file

@ -249,8 +249,11 @@ else if (matchDomain("bloombergquint.com")) {
} }
else if (matchDomain(["medium.com", "towardsdatascience.com"])) { else if (matchDomain(["medium.com", "towardsdatascience.com"])) {
let meter = document.querySelector('#lo-highlight-meter-1-highlight-box'); window.setTimeout(function () {
removeDOMElement(meter); let meter = document.querySelector('[id^="lo-highlight-meter-"]');
if (meter)
meter.hidden = true;
}, 500); // Delay (in milliseconds)
} }
else if (matchDomain("ledevoir.com")) { 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(/Glaxo\n\nSmith\n\nKline/g, "GlaxoSmithKline");
str = str.replace(/Eu\n\nGH/g, "EuGH"); str = str.replace(/Eu\n\nGH/g, "EuGH");
str = str.replace(/If\n\nSG/g, "IfSG"); 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(/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; return str;
}; };

View file

@ -266,6 +266,7 @@
"*://*.wired.com/*", "*://*.wired.com/*",
"*://*.worldpoliticsreview.com/*", "*://*.worldpoliticsreview.com/*",
"*://*.wsj.com/*", "*://*.wsj.com/*",
"*://*.zeit.de/*",
"*://*.blueconic.net/*", "*://*.blueconic.net/*",
"*://*.matheranalytics.com/*", "*://*.matheranalytics.com/*",
"*://*.onecount.net/*", "*://*.onecount.net/*",
@ -309,5 +310,5 @@
"webRequest", "webRequest",
"webRequestBlocking" "webRequestBlocking"
], ],
"version": "1.8.7.1" "version": "1.8.7.2"
} }

View file

@ -40,5 +40,5 @@
"webRequest", "webRequest",
"webRequestBlocking" "webRequestBlocking"
], ],
"version": "1.8.7.1" "version": "1.8.7.2"
} }

View file

@ -37,6 +37,7 @@ var defaultSites =
"De Tijd": "tijd.be", "De Tijd": "tijd.be",
"DeMorgen": "demorgen.be", "DeMorgen": "demorgen.be",
"Diario Financiero": "df.cl", "Diario Financiero": "df.cl",
"Die Zeit": "zeit.de",
"Digiday": "digiday.com", "Digiday": "digiday.com",
"Discover Magazine": "discovermagazine.com", "Discover Magazine": "discovermagazine.com",
"Domani": "editorialedomani.it", "Domani": "editorialedomani.it",