mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:07:47 +01:00
Fix Roularta Media Group (modal)
This commit is contained in:
parent
0c62ab161b
commit
09d67dc270
2 changed files with 25 additions and 24 deletions
|
@ -6,6 +6,7 @@ Post-release
|
|||
Add Cambio Colombia
|
||||
Add The News Minute (India)
|
||||
Fix LaStampa.it (video articles)
|
||||
Fix Roularta Media Group (modal)
|
||||
Fix South China Morning Post (mobile & amp)
|
||||
Fix WSJ (disable amp-redirect for www)
|
||||
|
||||
|
|
|
@ -2291,34 +2291,34 @@ else if (matchDomain(be_roularta_domains)) {
|
|||
let content_inner = document.querySelector('div.content-inner[style]');
|
||||
if (content_inner)
|
||||
content_inner.removeAttribute('style');
|
||||
} else {
|
||||
let paywall = document.querySelector('div[id*="wall-modal"]');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
let html = document.querySelector('html[class]');
|
||||
if (html)
|
||||
html.removeAttribute('class');
|
||||
function roularta_noscroll(node) {
|
||||
node.removeAttribute('style');
|
||||
node.removeAttribute('class');
|
||||
}
|
||||
waitDOMAttribute('html', 'html', 'class', roularta_noscroll, true);
|
||||
let intro = document.querySelectorAll('div.article-body > p, div.article-body > style');
|
||||
removeDOMElement(...intro);
|
||||
let locked = document.querySelector('body.locked');
|
||||
if (locked)
|
||||
locked.classList.remove('locked');
|
||||
}
|
||||
} else {
|
||||
let paywall = document.querySelector('div[id*="wall-modal"]');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
let html = document.querySelector('html[class]');
|
||||
if (html)
|
||||
html.removeAttribute('class');
|
||||
function roularta_noscroll(node) {
|
||||
node.removeAttribute('style');
|
||||
node.removeAttribute('class');
|
||||
}
|
||||
if (!window.navigator.userAgent.toLowerCase().includes('chrome') && !matchDomain(['artsenkrant.com', 'kw.be']) && window.location.href.match(/\/((\w)+(\-)+){3,}/)) {
|
||||
let lazy_images = document.querySelectorAll('[src^="data:image/"][data-lazy-src]');
|
||||
for (let elem of lazy_images) {
|
||||
elem.src = elem.getAttribute('data-lazy-src');
|
||||
}
|
||||
waitDOMAttribute('html', 'html', 'class', roularta_noscroll, true);
|
||||
let intro = document.querySelectorAll('div.article-body > p, div.article-body > style');
|
||||
removeDOMElement(...intro);
|
||||
let locked = document.querySelector('body.locked');
|
||||
if (locked)
|
||||
locked.classList.remove('locked');
|
||||
}
|
||||
if (!window.navigator.userAgent.toLowerCase().includes('chrome') && !matchDomain(['artsenkrant.com', 'kw.be']) && window.location.href.match(/\/((\w)+(\-)+){3,}/)) {
|
||||
let lazy_images = document.querySelectorAll('img[src^="data:image/"][data-lazy-src]');
|
||||
for (let elem of lazy_images) {
|
||||
elem.src = elem.getAttribute('data-lazy-src');
|
||||
}
|
||||
}
|
||||
let ads = document.querySelectorAll('div.rmgAd');
|
||||
hideDOMElement(...ads);
|
||||
}
|
||||
let ads = document.querySelectorAll('div.rmgAd');
|
||||
hideDOMElement(...ads);
|
||||
}
|
||||
|
||||
else if (matchDomain(['lc.nl', 'dvhn.nl']) || document.querySelector('link[href*=".ndcmediagroep.nl/"]')) {
|
||||
|
|
Loading…
Reference in a new issue