Fix TheBulletin.org (ld_json_url)

merge-requests/16/head
magnolia1234 7 months ago
parent d531d2326c
commit aacf6b7060

@ -11,6 +11,7 @@ Add The Impression
Remove Delinian Group (fix obsolete)
Fix El Pais (mobile)
Fix Schwaebische.de
Fix TheBulletin.org (ld_json_url)
Fix WSJ (mobile & Googlebot for cn/jp subdomain)
Update custom sites (link to 1ft.io)
@ -556,7 +557,7 @@ Fix The Seattle Times (comments)
Fix TheSaturdayPaper.com.au
* v2.9.9.0 (2022-12-27)
Add Bulletin of the Atomic Scientists
Add TheBulletin.org
Add Limburger.nl (link to archive.is)
Add Republic.ru
Add The-Village.ru

@ -4825,14 +4825,8 @@ else if (matchDomain('theatlantic.com')) {
}
else if (matchDomain('thebulletin.org')) {
let url = window.location.href;
let paywall = document.querySelector('div.article--cropped');
if (paywall) {
removeDOMElement(paywall);
csDoneOnce = true;
let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0];
replaceDomElementExt(url_cache, true, false, 'div#body-copy');
}
if (dompurify_loaded)
getJsonUrl('div.article--cropped', '', 'div#body-copy', {art_append: true});
}
else if (matchDomain('thedailybeast.com')) {
@ -6012,6 +6006,8 @@ function getJsonUrlAdd(json_text, article, art_options = {}) {
art_type = art_options.art_type;
if (art_options.art_class)
art_attrib += ' class="' + art_options.art_class + '"';
if (art_options.art_id)
art_attrib += ' id="' + art_options.art_id + '"';
if (art_options.art_style)
art_attrib += ' style="' + art_options.art_style + '"';
if (art_options.func_text)

@ -44,6 +44,13 @@
"block_regex": "(\\.cm\\.bloomberg\\.com\\/|assets\\.bwbx\\.io\\/s\\d\\/javelin\\/.+\\/transporter\\/)",
"upd_version": "3.2.7.1"
},
"Bulletin of the Atomic Scientists": {
"domain": "thebulletin.org",
"allow_cookies": 1,
"block_regex": "\\.tinypass\\.com\\/",
"ld_json_url": "div.article--cropped|div#body-copy|1",
"upd_version": "3.4.0.7"
},
"CartaCapital": {
"domain": "cartacapital.com.br",
"allow_cookies": 1,

Loading…
Cancel
Save