diff --git a/changelog.txt b/changelog.txt index 18c826b7..e3f2159b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -6,6 +6,7 @@ Add Architectural Digest (Conde Nast) Add Handelszeitung.ch Fix ABC.es (mobile) Fix Knack.be & LeVif.be (subdomains-text) +Fix SOFREP (plus) Fix WSJ (no Googlebot) * v2.7.4.0 (2022-07-03) diff --git a/contentScript.js b/contentScript.js index febae5b0..64d9db8e 100644 --- a/contentScript.js +++ b/contentScript.js @@ -3422,6 +3422,14 @@ else if (matchDomain('sloanreview.mit.edu')) { } else if (matchDomain('sofrep.com')) { + if (!window.location.pathname.startsWith('/amp/')) { + let paywall = document.querySelector('div.fader'); + let amphtml = document.querySelector('link[rel="amphtml"]'); + if (paywall && amphtml) { + removeDOMElement(paywall); + window.location.href = amphtml.href; + } + } let banners = document.querySelectorAll('#scrollerCTA, #botCta'); removeDOMElement(...banners); } diff --git a/sites_updated.json b/sites_updated.json index 0116bd5d..fb4529f0 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -129,6 +129,13 @@ } ] }, + "SOFREP": { + "domain": "sofrep.com", + "block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js", + "amp_redirect": { + "paywall": "div.fader" + } + }, "The Wall Street Journal": { "domain": "wsj.com", "allow_cookies": 1,