Add Die Zeit (Germany)
This commit is contained in:
parent
77bf9a33f0
commit
bb0f4cc8a5
@ -242,6 +242,7 @@ Visit the [Firefox repository](https://bitbucket.org/magnolia1234/bypass-paywall
|
||||
[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)
|
||||
|
@ -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 };
|
||||
}, {
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -254,6 +254,7 @@
|
||||
"*://*.wired.com/*",
|
||||
"*://*.worldpoliticsreview.com/*",
|
||||
"*://*.wsj.com/*",
|
||||
"*://*.zeit.de/*",
|
||||
"*://*.blueconic.net/*",
|
||||
"*://*.matheranalytics.com/*",
|
||||
"*://*.onecount.net/*",
|
||||
@ -296,5 +297,5 @@
|
||||
"webRequest",
|
||||
"webRequestBlocking"
|
||||
],
|
||||
"version": "1.8.7.1"
|
||||
"version": "1.8.7.2"
|
||||
}
|
||||
|
@ -21,5 +21,5 @@
|
||||
"page": "options.html"
|
||||
},
|
||||
"permissions": [ "cookies", "<all_urls>", "storage", "webRequest", "webRequestBlocking"],
|
||||
"version": "1.8.7.1"
|
||||
"version": "1.8.7.2"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user