mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:11:56 +01:00
Fix Quartz (newsletter)
This commit is contained in:
parent
80c8c8a308
commit
8aef2350bf
4 changed files with 30 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -682,5 +682,5 @@
|
|||
"*://*.wsj.net/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "2.7.1.0"
|
||||
"version": "2.7.1.1"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue