Fix Telegraaf.nl

merge-requests/7/head
magnolia1234 2 years ago
parent d5f2020df1
commit a6460642b6

@ -5,6 +5,7 @@ Post-release
Add UnHerd (UK)
Remove The Japan Times (fix obsolete)
Fix Lequipe.fr (json)
Fix Telegraaf.nl
Fix The Dallas Morning News
* v2.6.8.0 (2022-05-08)

@ -1899,7 +1899,7 @@ else if (matchDomain('telegraaf.nl')) {
let html = document.documentElement.outerHTML;
let json = html.includes('window.__APOLLO_STATE__=') ? html.split('window.__APOLLO_STATE__=')[1].split('};')[0] + '}' : '';
if (json) {
let json_article_id = json.split('uid\":')[1].split(',\"')[0];
let json_article_id = json.split('uid\":')[1].split(/\D/)[0];
if (json_article_id && json_article_id !== article_id) {
window.setTimeout(function () {
window.location.reload(true);
@ -1910,7 +1910,7 @@ else if (matchDomain('telegraaf.nl')) {
let intro = document.querySelector('span[id^="articleIntro"]');
if (intro)
json_text = json_text.replace(intro.innerText + '\n\n', '');
let article_body = document.querySelector('section.TextArticlePage__bodyText');
let article_body = document.querySelector('section.TextArticlePage__bodyContent');
if (article_body) {
let div_main = document.createElement('div');
div_main.setAttribute('id', 'articleBody' + article_id);
@ -1924,7 +1924,7 @@ else if (matchDomain('telegraaf.nl')) {
div_elem.appendChild(p_div);
});
div_main.appendChild(div_elem);
article_body.appendChild(div_main);
article_body.insertBefore(div_main, article_body.firstChild);
}
}
}

@ -172,6 +172,10 @@
"block_regex": "\\.tinypass\\.com\\/",
"domain": "thenational.scot"
},
"Thestar.com.my": {
"block_regex": "(\\.piano\\.io\\/|cdn\\.cxense\\.com)",
"domain": "thestar.com.my"
},
"Theweek.com": {
"allow_cookies": 1,
"domain": "theweek.com",

@ -671,5 +671,5 @@
"*://*.wsj.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.6.8.2"
"version": "2.6.8.3"
}

@ -3,29 +3,6 @@
"domain": "tijd.be",
"referer": "google"
},
"El Espectador": {
"domain": "elespectador.com",
"allow_cookies": 1,
"block_regex": "(\\.tinypass\\.com\\/|cdn\\.cxense\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js)",
"amp_redirect": "div.exclusive_validation"
},
"eNotes": {
"domain": "enotes.com",
"allow_cookies": 1,
"cs_code": [{
"cond": "section.c-cta-section",
"rm_elem": 1,
"elems": [{
"cond": "div[class^=\"_\"]",
"rm_attrib": "class"
}, {
"cond": "div.o-rte-text > p:not([class]), div.o-rte-text > h3",
"rm_elem": 1
}
]
}
]
},
"Finance.si": {
"domain": "finance.si",
"allow_cookies": 1,
@ -35,24 +12,6 @@
"domain": "lecho.be",
"referer": "google"
},
"Puck.news": {
"domain": "puck.news",
"allow_cookies": 1,
"cs_code": [{
"cond": ".paywall",
"rm_elem": 1,
"elems": [{
"cond": "body.paywall-active",
"rm_class": "paywall-active"
}, {
"cond": "article[style]",
"rm_attrib": "style"
}
]
}
],
"new_site": 1
},
"The Daily Wire": {
"domain": "dailywire.com",
"allow_cookies": 1,

Loading…
Cancel
Save