Fix SOFREP (plus)

merge-requests/12/merge
magnolia1234 1 year ago
parent b3afd9451f
commit b3073306fa

@ -6,6 +6,7 @@ Add Saarbruecker Zeitung
Remove Handelsblatt
Fix Groupe LaDepeche.fr (text)
Fix NzHerald (css)
Fix SOFREP (plus)
Fix StuDocu (timing)
* v3.0.2.0 (2023-01-22)

@ -3881,13 +3881,12 @@ 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 paywall = document.querySelector('div.paywall');
if (paywall) {
paywall.removeAttribute('class');
let intro = document.querySelector('div.non-paywall');
removeDOMElement(intro);
waitDOMElement('div#paywall_wrap', 'DIV', node => removeDOMElement(node.parentNode));
}
let banners = document.querySelectorAll('#scrollerCTA, #botCta');
removeDOMElement(...banners);

@ -729,5 +729,5 @@
"*://*.wallkit.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.0.2.4"
"version": "3.0.2.5"
}

@ -1686,8 +1686,7 @@ var defaultSites = {
allow_cookies: 1
},
"SOFREP": {
domain: "sofrep.com",
block_regex: /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/
domain: "sofrep.com"
},
"South China Morning Post": {
domain: "scmp.com",

Loading…
Cancel
Save