Fix WSJ (no Googlebot)

merge-requests/7/head
magnolia1234 2 years ago
parent 4947b58a38
commit 1dcf13b7b5

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

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

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

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

Loading…
Cancel
Save