diff --git a/changelog.txt b/changelog.txt index 298a156..1f781d7 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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) diff --git a/contentScript.js b/contentScript.js index 5376069..3df3004 100644 --- a/contentScript.js +++ b/contentScript.js @@ -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')) { diff --git a/manifest.json b/manifest.json index a21f695..2b1f764 100644 --- a/manifest.json +++ b/manifest.json @@ -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" } diff --git a/sites.js b/sites.js index 953fd75..892f51b 100644 --- a/sites.js +++ b/sites.js @@ -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", diff --git a/sites_updated.json b/sites_updated.json index 1fbc0d6..fc18328 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -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"],