Fix SOFREP (plus)

merge-requests/7/head
magnolia1234 2 years ago
parent 4be75071cc
commit 9ed0fb8a13

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

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

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

Loading…
Cancel
Save