Fix Los Angeles Times & San Diego Union-Tribune

merge-requests/13/head
magnolia1234 1 year ago
parent d1bba47a0e
commit 84c831c5b4

@ -7,6 +7,7 @@ Remove L'Opinion.fr (fix obsolete)
Remove Spiegel.de (fix obsolete)
Fix Conde Nast magazines (cookies)
Fix DvhN.nl (json)
Fix Los Angeles Times & San Diego Union-Tribune
Fix Madsack Mediengruppe
Fix The Atlantic (menu)
Fix The Australian (The Oz)

@ -3436,15 +3436,8 @@ else if (matchDomain('jpost.com')) {
}
else if (matchDomain(['latimes.com', 'sandiegouniontribune.com'])) {
if (window.location.search.startsWith('?_amp=true')) {
amp_unhide_subscr_section('amp-ad, [class*="-ad-wrapper"], div.enhancement');
} else {
window.setTimeout(function () {
let metering_bottompanel = document.querySelector('metering-bottompanel');
let banners = document.querySelectorAll('div.enhancement, div.google-dfp-ad-wrapper');
removeDOMElement(metering_bottompanel, ...banners);
}, 500);
}
let ads = document.querySelectorAll('div.enhancement, div.google-dfp-ad-wrapper');
removeDOMElement(...ads);
}
else if (matchDomain('ledevoir.com')) {

@ -710,6 +710,7 @@
"*://*.blink.net/*",
"*://*.bntech.io/*",
"*://*.bwbx.io/*",
"*://*.californiatimes.com/*",
"*://*.cedsdigital.it/*",
"*://*.corriereobjects.it/*",
"*://*.emol.cl/*",
@ -723,5 +724,5 @@
"*://*.wallkit.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.0.3.6"
"version": "3.0.3.7"
}

@ -1180,7 +1180,7 @@ var defaultSites = {
},
"Los Angeles Times": {
domain: "latimes.com",
block_regex: /(metering\.platform\.latimes\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|subscriptions)-.+\.js)/
block_regex: /\.californiatimes\.com\/meteringjs/
},
"Madavor Media (opt-in to custom sites)": {
domain: "###_usa_madavor",
@ -1644,7 +1644,7 @@ var defaultSites = {
},
"San Diego Union Tribune": {
domain: "sandiegouniontribune.com",
block_regex: /(metering\.platform\.sandiegouniontribune\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|subscriptions)-.+\.js)/
block_regex: /\.californiatimes\.com\/meteringjs/
},
"Science (free articles only)": {
domain: "science.org",

@ -61,11 +61,19 @@
"ld_json": "div.paywall|div.article-full__body-content",
"cs_code": "[{\"cond\":\"div.article-full__body-content\",\"rm_attrib\":\"style|data-state\"}]"
},
"Los Angeles Times": {
"domain": "latimes.com",
"block_regex": "\\.californiatimes\\.com\\/meteringjs"
},
"Saarbrücker Zeitung": {
"domain": "saarbruecker-zeitung.de",
"allow_cookies": 1,
"useragent": "facebookbot"
},
"San Diego Union Tribune": {
"domain": "sandiegouniontribune.com",
"block_regex": "\\.californiatimes\\.com\\/meteringjs"
},
"The Atlantic": {
"domain": "theatlantic.com",
"remove_cookies_select_drop": ["articleViews"],

Loading…
Cancel
Save