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