From 89b44dd688b5b958027afbbc0bff13cb2a7fc9da Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Tue, 26 Sep 2023 08:24:14 +0200 Subject: [PATCH] Fix Mexico News Daily --- changelog.txt | 1 + contentScript.js | 6 ++++++ custom/manifest.json | 2 +- manifest.json | 2 +- sites.js | 2 +- sites_updated.json | 6 ++++++ 6 files changed, 16 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index 6bc7b71d..f4d2d7b8 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,7 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal Post-release Add Conde Nast Traveler Fix Mediahuis Noord (json) +Fix Mexico News Daily * v3.3.5.0 (2023-09-24) Add Arkansas Democrat-Gazette diff --git a/contentScript.js b/contentScript.js index b84b7398..b71e4f73 100644 --- a/contentScript.js +++ b/contentScript.js @@ -4256,6 +4256,12 @@ else if (matchDomain('medscape.com')) { hideDOMElement(...ads); } +else if (matchDomain('mexiconewsdaily.com')) { + let div_hidden = document.querySelector('body.single div.td-post-content > div.tdb-block-inner'); + if (div_hidden) + div_hidden.classList.remove('tdb-block-inner'); +} + else if (matchDomain('mid-day.com')) { if (window.location.pathname.startsWith('/amp/')) { amp_unhide_access_hide('="granted"', '="NOT granted"', 'amp-ad, amp-embed, [class*="BannerAd"]'); diff --git a/custom/manifest.json b/custom/manifest.json index 7ea09035..1e20ef50 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.3.5.1" + "version": "3.3.5.2" } diff --git a/manifest.json b/manifest.json index c63cbba8..3f7485aa 100644 --- a/manifest.json +++ b/manifest.json @@ -794,5 +794,5 @@ "*://*.wyleex.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.3.5.1" + "version": "3.3.5.2" } diff --git a/sites.js b/sites.js index dc10eeda..429ab4c4 100644 --- a/sites.js +++ b/sites.js @@ -1502,7 +1502,7 @@ var defaultSites = { "Mexico News Daily": { domain: "mexiconewsdaily.com", allow_cookies: 1, - block_regex: /\.piano\.io\/api\/tinypass\.min\.js/ + block_regex: /\/mexiconewsdaily\.com\/wp-content\/plugins\/leaky-paywall\/js\/leaky-paywall-cookie\.js/ }, "Mid-Day": { domain: "mid-day.com", diff --git a/sites_updated.json b/sites_updated.json index 6168d901..2e0b68b6 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -33,6 +33,12 @@ "useragent": "googlebot", "upd_version": "3.3.5.1" }, + "Mexico News Daily": { + "domain": "mexiconewsdaily.com", + "allow_cookies": 1, + "block_regex": "\\/mexiconewsdaily\\.com\\/wp-content\\/plugins\\/leaky-paywall\\/js\\/leaky-paywall-cookie\\.js", + "upd_version": "3.3.5.2" + }, "South China Morning Post": { "domain": "scmp.com", "block_regex": "(\\.tinypass\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|subscriptions)-.+\\.js)",