Fix WSJ (no Googlebot)

This commit is contained in:
magnolia1234 2022-07-06 20:03:33 +02:00
parent 4947b58a38
commit 1dcf13b7b5
4 changed files with 12 additions and 2 deletions

View file

@ -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

View file

@ -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);

View file

@ -689,5 +689,5 @@
"*://*.wsj.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.7.4.3"
"version": "2.7.4.4"
}

View file

@ -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"
}
}
}