Fix group Crain Communications
This commit is contained in:
parent
02f17aabb6
commit
f6fca8ba08
@ -572,7 +572,7 @@ function add_grouped_sites(init_rules) {
|
||||
for (let domain of usa_craincomm_domains) {
|
||||
if (domain !== 'autonews.com')
|
||||
allow_cookies.push(domain);
|
||||
blockedRegexes[domain] = new RegExp('(\.tinypass\.com\/|\.' + domain + '\/.+\/js\/js_(e|E).+\.js)');
|
||||
blockedRegexes[domain] = new RegExp('(\.tinypass\.com\/|\.' + domain + '\/.+\/js\/js_.+\.js)');
|
||||
}
|
||||
for (let domain of usa_mcc_domains)
|
||||
blockedRegexes[domain] = /(js\.matheranalytics\.com\/|cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js)/;
|
||||
|
@ -2,9 +2,10 @@
|
||||
Changelog Bypass Paywalls Clean - Chrome
|
||||
|
||||
Post-release
|
||||
Fix group Crain Communications
|
||||
|
||||
* v2.3.4.0 (2021-08-22)
|
||||
Add Ad Age & Automotive News (& fix group Crain Communications)
|
||||
Add Ad Age & Automotive News (group Crain Communications)
|
||||
Add MediaNews Group (local USA)
|
||||
Add The Intercept
|
||||
Remove Slader (obsolete)
|
||||
|
@ -2710,6 +2710,13 @@ else if (matchDomain(usa_craincomm_domains)) {
|
||||
let body_hidden = document.querySelector('body[class]');
|
||||
if (body_hidden)
|
||||
body_hidden.removeAttribute('class');
|
||||
let lazy_images = document.querySelectorAll('img.lazy[data-src]');
|
||||
for (let lazy_image of lazy_images) {
|
||||
lazy_image.src = lazy_image.getAttribute('data-src');
|
||||
lazy_image.removeAttribute('class');
|
||||
}
|
||||
let lazy_sources = document.querySelectorAll('source[srcset^="data:image"]');
|
||||
removeDOMElement(...lazy_sources);
|
||||
}
|
||||
|
||||
else if (matchDomain(usa_tribune_domains)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user