Fix SOFREP (plus)

This commit is contained in:
magnolia1234 2022-07-07 19:12:31 +02:00
parent 4be75071cc
commit 9ed0fb8a13
3 changed files with 16 additions and 0 deletions

View File

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

View File

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

View File

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