diff --git a/changelog.txt b/changelog.txt index a00ea69..ccec289 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,7 @@ Post-release Add Architectural Digest (Conde Nast) Fix ABC.es (mobile) Fix Knack.be & LeVif.be (subdomains-text) +Fix WSJ (no Googlebot) * v2.7.4.0 (2022-07-03) Add Beobachter.ch diff --git a/contentScript.js b/contentScript.js index e949838..febae5b 100644 --- a/contentScript.js +++ b/contentScript.js @@ -3936,7 +3936,7 @@ else if (matchDomain('wsj.com')) { masthead_link.href = 'https://www.wsj.com'; amp_unhide_subscr_section(); } else { - let snippet = document.querySelector('.snippet-promotion'); + let snippet = document.querySelector('.snippet-promotion, div#cx-snippet-overlay'); let wsj_pro = document.querySelector('meta[name="page.site"][content="wsjpro"]'); if (snippet || wsj_pro) { removeDOMElement(snippet, wsj_pro); diff --git a/manifest.json b/manifest.json index 3b8505f..abdb1c1 100644 --- a/manifest.json +++ b/manifest.json @@ -689,5 +689,5 @@ "*://*.wsj.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.7.4.3" + "version": "2.7.4.4" } diff --git a/sites_updated.json b/sites_updated.json index 91fe118..03ff5e6 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -154,5 +154,14 @@ "domain": "thebanker.com", "useragent": "googlebot", "new_site": 1 + }, + "The Wall Street Journal": { + "domain": "wsj.com", + "allow_cookies": 1, + "block_regex": "(cdn\\.cxense\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|subscriptions)-.+\\.js)", + "useragent": "googlebot", + "amp_redirect": { + "paywall": ".snippet-promotion, div#cx-snippet-overlay" + } } }