Fix Madsack Mediengruppe
This commit is contained in:
parent
eab683a2e4
commit
90bf5a5947
@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Chrome
|
||||
Post-release
|
||||
Add New Scientist
|
||||
Fix Los Angeles Times & San Diego Union-Tribune
|
||||
Fix Madsack Mediengruppe
|
||||
Fix NYTimes (Cooking)
|
||||
Fix The New York Review of Books (timing)
|
||||
|
||||
|
@ -740,6 +740,7 @@ else if (matchDomain(de_madsack_domains) || matchDomain(de_madsack_custom_domain
|
||||
if (json_script) {
|
||||
let json = JSON.parse(json_script.text);
|
||||
if (article && json) {
|
||||
article.parentNode.removeAttribute('class');
|
||||
let json_text = json.articleBody;
|
||||
let article_new = document.createElement('span');
|
||||
let par = article.querySelector('p');
|
||||
@ -762,6 +763,11 @@ else if (matchDomain(de_madsack_domains) || matchDomain(de_madsack_custom_domain
|
||||
}
|
||||
} else if (window.location.pathname.startsWith('/amp/')) {
|
||||
amp_unhide_subscr_section('.pdb-ad-container, amp-embed');
|
||||
} else {
|
||||
window.setTimeout(function () {
|
||||
let canonical = document.querySelector('link[rel="canonical"]');
|
||||
window.location.href = canonical.href;
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -32,6 +32,26 @@
|
||||
"domain": "latimes.com",
|
||||
"block_regex": "(metering\\.platform\\.latimes\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|subscriptions)-.+\\.js)"
|
||||
},
|
||||
"Madsack Mediengruppe": {
|
||||
"domain": "###_de_madsack",
|
||||
"group": [
|
||||
"haz.de",
|
||||
"kn-online.de",
|
||||
"ln-online.de",
|
||||
"lvz.de",
|
||||
"maz-online.de",
|
||||
"neuepresse.de",
|
||||
"ostsee-zeitung.de",
|
||||
"rnd.de"
|
||||
],
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "(\\.tinypass\\.com\\/|\\.piano\\.io\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js)",
|
||||
"cs_code": [{
|
||||
"cond": "div[class*=\"ArticleTeaserContainer\"]",
|
||||
"rm_attrib": "class"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Neue Westfälische": {
|
||||
"domain": "nw.de",
|
||||
"allow_cookies": 1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user