diff --git a/changelog.txt b/changelog.txt index 1468e48..0537eaf 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 Bild.de (fetch from archive.is) Add Capital.fr +Fix MediaNews Group (ld_json_url) Fix Nzz.ch (css) * v3.6.2.0 (2024-04-01) diff --git a/contentScript.js b/contentScript.js index fb5db4a..c6c9b1c 100644 --- a/contentScript.js +++ b/contentScript.js @@ -6352,10 +6352,11 @@ else if ((domain = matchDomain(usa_mcc_domains)) || hideDOMElement(...ads); } -else if (matchDomain(usa_mng_domains) || (window.location.href.match(/\.com\/(\d){4}\/(\d){2}\/(\d){2}\/.+\/amp\//) && document.querySelector('footer li > a[href^="https://www.medianewsgroup.com"]'))) { - if (window.location.pathname.endsWith('/amp/')) { +else if (matchDomain(usa_mng_domains) || document.querySelector('head > link[rel="stylesheet"][id^="dfm-accuweather-"], footer li > a[href^="https://www.medianewsgroup.com"]')) { + if (window.location.pathname.endsWith('/amp/')) amp_unhide_subscr_section('amp-ad, amp-embed, div.ampWrapperInside, div#paywall'); - } + else if (dompurify_loaded) + getJsonUrl('#server-paywall', '', 'div.body-copy', {art_append: 1}); } else if (document.querySelector('script[src*=".axate.io/"]')) { diff --git a/custom/manifest.json b/custom/manifest.json index ac2593e..68ad7e9 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.6.2.2" + "version": "3.6.2.3" } diff --git a/manifest.json b/manifest.json index 5ff70d7..56a38dd 100644 --- a/manifest.json +++ b/manifest.json @@ -868,5 +868,5 @@ "*://archive.vn/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.6.2.2" + "version": "3.6.2.3" } diff --git a/sites.js b/sites.js index b803908..3219c04 100644 --- a/sites.js +++ b/sites.js @@ -1656,7 +1656,8 @@ var defaultSites = { "twincities.com" ], allow_cookies: 1, - block_regex: "((\\.{domain}\\/script|\\/.+\\/loader\\.min)\\.js|\\.tinypass\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js)" + block_regex: "((\\.{domain}\\/script|\\/.+\\/loader\\.min)\\.js|\\.tinypass\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js)", + cs_dompurify: 1 }, "Medienholding Süd (opt-in to custom sites for unlisted)": { domain: "###_de_mhs", diff --git a/sites_updated.json b/sites_updated.json index d4c9292..f2c4091 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -72,6 +72,22 @@ "add_ext_link_type": "archive.is", "upd_version": "3.6.1.3" }, + "MediaNews Group": { + "domain": "###_usa_mng", + "group": [ + "bostonherald.com", + "denverpost.com", + "eastbaytimes.com", + "mercurynews.com", + "ocregister.com", + "pressenterprise.com", + "twincities.com" + ], + "allow_cookies": 1, + "block_regex": "((\\.{domain}\\/script|\\/.+\\/loader\\.min)\\.js|\\.tinypass\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js)", + "ld_json_url": "#server-paywall|div.body-copy|1", + "upd_version": "3.6.2.3" + }, "Neue Zürcher Zeitung": { "domain": "nzz.ch", "allow_cookies": 1,