Add Mitteldeutsche Zeitung
This commit is contained in:
parent
71a04a40ca
commit
677f868e6d
@ -388,6 +388,7 @@ Grouped in options:\
|
||||
[Handelsblatt](https://www.handelsblatt.com)* -
|
||||
[Krautreporter.de](https://krautreporter.de) -
|
||||
[Kurier.at](https://kurier.at) -
|
||||
[Mitteldeutsche Zeitung](https://www.mz.de) -
|
||||
[Neue Osnabrücker Zeitung](https://www.noz.de]) -
|
||||
[Nordwest Zeitung](https://www.nwzonline.de) -
|
||||
[Piqd.de](https://www.piqd.de) -
|
||||
|
@ -2,6 +2,7 @@
|
||||
Changelog Bypass Paywalls Clean - Chrome
|
||||
|
||||
Post-release
|
||||
Add Mitteldeutsche Zeitung
|
||||
Fix Lee Enterprises Group
|
||||
Fix LesEchos.fr (json)
|
||||
Fix WaPo (images)
|
||||
|
@ -514,6 +514,26 @@ else if (matchDomain('kurier.at')) {
|
||||
plus_content.classList.remove('plusContent');
|
||||
}
|
||||
|
||||
else if (matchDomain('mz.de')) {
|
||||
let url = window.location.href.split('?')[0];
|
||||
let paywall = document.querySelector('.fp-paywall');
|
||||
if (url.includes('/amp/')) {
|
||||
let preview = document.querySelector('section[subscriptions-section="content-not-granted"]');
|
||||
removeDOMElement(preview);
|
||||
let subscr_section = document.querySelector('[subscriptions-section="content"]');
|
||||
if (subscr_section) {
|
||||
subscr_section.removeAttribute('subscriptions-section');
|
||||
let amp_ads = document.querySelectorAll('amp-ad, amp-embed');
|
||||
removeDOMElement(...amp_ads);
|
||||
}
|
||||
} else {
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
window.location.href = window.location.href.replace('.de/', '.de/amp/');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain(['noz.de', 'nwzonline.de', 'shz.de', 'svz.de'])) {
|
||||
let url = window.location.href;
|
||||
if (url.includes('?amp') || url.includes('-amp.html')) {
|
||||
|
@ -321,6 +321,7 @@
|
||||
"*://*.modernhealthcare.com/*",
|
||||
"*://*.morgenpost.de/*",
|
||||
"*://*.mv-voice.com/*",
|
||||
"*://*.mz.de/*",
|
||||
"*://*.nation.africa/*",
|
||||
"*://*.nationalgeographic.com/*",
|
||||
"*://*.nationalpost.com/*",
|
||||
|
7
sites.js
7
sites.js
@ -952,6 +952,11 @@ var defaultSites = {
|
||||
domain: "technologyreview.com",
|
||||
block_regex: /\.blueconic\.net\//
|
||||
},
|
||||
"Mitteldeutsche Zeitung": {
|
||||
domain: "mz.de",
|
||||
allow_cookies: 1,
|
||||
block_regex: /cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|subscriptions)-.+\.js/
|
||||
},
|
||||
"Mountain View Voice": {
|
||||
domain: "mv-voice.com"
|
||||
},
|
||||
@ -1732,4 +1737,4 @@ expandSiteRules(defaultSites);
|
||||
// grouped domains (dompurify)
|
||||
var nl_mediahuis_region_domains = grouped_sites['###_nl_mediahuis_region'];
|
||||
var no_nhst_media_domains = grouped_sites['###_no_nhst_media'];
|
||||
var usa_theathletic_domains = grouped_sites['###_usa_theathletic'];
|
||||
var usa_theathletic_domains = grouped_sites['###_usa_theathletic'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user