Fix The Quint (json)

merge-requests/20/head
magnolia1234 4 months ago
parent bc2fc6caa4
commit e6cd4d5dfe

@ -8,6 +8,7 @@ Add Vogue.co.uk (Conde Nast)
Remove Arkansas Democrat-Gazette (fix obsolete)
Fix Haaretz Group (disable bot)
Fix Humanite.fr (json)
Fix The Quint (json)
* v3.5.6.0 (2024-02-18)
Add 3 more Gannett sites

@ -5505,16 +5505,31 @@ else if (matchDomain('thepointmag.com')) {
}
else if (matchDomain('thequint.com')) {
let paywall = document.querySelector('div.zsqcu');
let paywall = document.querySelector('div#paywall-widget');
if (paywall) {
removeDOMElement(paywall);
let json_script = getArticleJsonScript();
if (json_script) {
let json = JSON.parse(json_script.text);
if (json) {
let json_text = breakText(parseHtmlEntities(json.articleBody));
let article = document.querySelector('div.story-element');
if (json_text && article) {
let article_new = document.createElement('p');
article_new.innerText = json_text;
article.innerHTML = '';
article.appendChild(article_new);
}
}
} else
refreshCurrentTab();
let body_hidden = document.querySelector('div#story-body-wrapper');
if (body_hidden)
body_hidden.removeAttribute('class');
function thequint_unhide(node) {
node.removeAttribute('class');
node.removeAttribute('style');
}
waitDOMAttribute('div#story-body-wrapper', 'DIV', 'class', thequint_unhide, true);
waitDOMAttribute('div#story-body-wrapper', 'DIV', 'style', thequint_unhide, true);
}
}

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.5.6.3"
"version": "3.5.6.4"
}

@ -335,6 +335,11 @@
"block_regex": "\\.tinypass\\.com",
"domain": "heraldscotland.com"
},
"Hsj.co.uk": {
"allow_cookies": 1,
"domain": "hsj.co.uk",
"useragent": "googlebot"
},
"Huisartsvandaag.nl": {
"allow_cookies": 1,
"domain": "huisartsvandaag.nl",
@ -384,6 +389,11 @@
"domain": "kapital.no",
"useragent": "googlebot"
},
"Keymilitary.com": {
"allow_cookies": 1,
"domain": "keymilitary.com",
"useragent": "googlebot"
},
"Lagaceta.com.ar": {
"allow_cookies": 1,
"block_regex": "\\.lagaceta\\.com\\.ar\\/ajax\\/getInfo",
@ -858,6 +868,11 @@
"block_regex": "\\.toolkits\\.com\\/app\\/js\\/api\\.min\\.js",
"domain": "toolkits.com"
},
"Tvnewscheck.com": {
"allow_cookies": 1,
"domain": "tvnewscheck.com",
"ld_json_url": "div.singlepage div.mp_login_form|div.post-details"
},
"Utilityweek.co.uk": {
"allow_cookies": 1,
"domain": "utilityweek.co.uk",

@ -860,5 +860,5 @@
"*://archive.vn/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.5.6.3"
"version": "3.5.6.4"
}

Loading…
Cancel
Save