Fix SOFREP (plus)

This commit is contained in:
magnolia1234 2023-01-26 09:08:35 +01:00
parent b3afd9451f
commit b3073306fa
4 changed files with 9 additions and 10 deletions

View File

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

View File

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

View File

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

View File

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