mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-04 12:00:10 +00:00
Fix SOFREP (plus)
This commit is contained in:
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…
Reference in New Issue
Block a user