Fix Quartz (newsletter)

This commit is contained in:
magnolia1234 2022-05-30 17:10:35 +02:00
parent 80c8c8a308
commit 8aef2350bf
4 changed files with 30 additions and 10 deletions

View file

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Fix Quartz (newsletter)
* v2.7.1.0 (2022-05-29)
Add Corriere dello Sport

View file

@ -3307,15 +3307,16 @@ else if (matchDomain('quora.com')) {
}
else if (matchDomain('qz.com')) {
let paywall = document.querySelector('div.KbD9m');
if (paywall) {
removeDOMElement(paywall);
let overflow = document.querySelector('div._4BDxU');
if (overflow)
overflow.classList.remove('_4BDxU');
let noscroll = document.querySelector('iframe[scrolling]');
if (noscroll)
noscroll.removeAttribute('scrolling');
if (window.location.pathname.startsWith('/emails/')) {
let paywall = document.querySelector('div#email-content[class]');
if (paywall) {
paywall.removeAttribute('class');
let login = pageContains('h2[class]', /^This story is exclusive to/);
removeDOMElement(login[0].parentElement);
let noscroll = document.querySelector('iframe[scrolling]');
if (noscroll)
noscroll.removeAttribute('scrolling');
}
}
}

View file

@ -682,5 +682,5 @@
"*://*.wsj.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.7.1.0"
"version": "2.7.1.1"
}

View file

@ -69,5 +69,23 @@
"amp_redirect": "div#story-blocker"
}
]
},
"Quartz": {
"domain": "qz.com",
"allow_cookies": 1,
"block_regex": "\\.tinypass\\.com\\/",
"cs_code": [{
"cond": "div#email-content[class]",
"rm_attrib": "class",
"elems": [{
"cond": "div.BBwe2.RXsUp",
"rm_elem": 1
}, {
"cond": "iframe[scrolling]",
"rm_attrib": "scrolling"
}
]
}
]
}
}