Fix ElMundo.es (amp)

This commit is contained in:
magnolia1234 2021-11-05 14:43:26 +01:00
parent b96c51bd09
commit 991e403850
6 changed files with 9 additions and 3 deletions

View File

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Chrome
Post-release
Add Mitteldeutsche Zeitung
Fix ElMundo.es (amp)
Fix Lee Enterprises Group
Fix LesEchos.fr (json)
Fix WaPo (images)

View File

@ -680,6 +680,11 @@ else if (domain = matchDomain(es_unidad_domains)) {
div_hidden.removeAttribute('amp-access-hide');
}
}
let preview = document.querySelector('[subscriptions-section="content-not-granted"]');
removeDOMElement(preview);
let subscr_section = document.querySelectorAll('[subscriptions-section="content"]');
for (let elem of subscr_section)
elem.removeAttribute('subscriptions-section');
let adverts = document.querySelectorAll('.advertising, amp-embed, amp-ad');
removeDOMElement(...adverts);
}

View File

@ -39,5 +39,5 @@
"webRequestBlocking",
"<all_urls>"
],
"version": "2.4.2.4"
"version": "2.4.2.5"
}

View File

@ -546,5 +546,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.4.2.4"
"version": "2.4.2.5"
}

View File

@ -1692,7 +1692,7 @@ var group_rules = {
},
es_unidad_domains: {
allow_cookies: 1,
block_regex: /cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|consent)-.+\.js/
block_regex: /cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|consent|subscriptions)-.+\.js/
},
it_repubblica_domains: {
allow_cookies: 1,