Fix Estadao.com.br (js)

This commit is contained in:
magnolia1234 2023-10-11 21:18:32 +02:00
parent fb0e2ffaaf
commit 098e721e63
6 changed files with 12 additions and 4 deletions

View file

@ -5,6 +5,7 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal
Post-release
Remove Mediahuis Nederland Regional (fix obsolete)
Fix BusinessPost.ie (js)
Fix Estadao.com.br (js)
Fix NyTeknik.se
Fix Tuttosport (image)

View file

@ -3264,7 +3264,7 @@ else if (matchDomain('em.com.br')) {
else if (matchDomain('estadao.com.br')) {
if (window.location.pathname.match(/(\.amp$|^\/amp\/)/) || window.location.search.startsWith('?amp')) {
amp_unhide_access_hide('="outputValue=\'hide_paywall\'"', '="outputValue=\'show_paywall\'"', 'amp-ad, amp-embed, amp-fx-flying-carpet, div[class^="pAd"]');
amp_unhide_access_hide('="outputValue=\'hide_paywall\'"', '="outputValue=\'show_paywall\'"', 'amp-ad, amp-embed, amp-fx-flying-carpet, div[class^="pAd"], div.ads-container');
} else {
let paywall = document.getElementById('paywall-wrapper-iframe-estadao');
removeDOMElement(paywall);

View file

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.3.7.3"
"version": "3.3.7.4"
}

View file

@ -797,5 +797,5 @@
"*://*.wyleex.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.3.7.3"
"version": "3.3.7.4"
}

View file

@ -1665,7 +1665,8 @@ var defaultSites = {
},
"O Estado de S. Paulo": {
domain: "estadao.com.br",
block_regex: /(acesso\.estadao\.com\.br\/paywall\/.+\/.+\.js|cdn\.ampproject\.org\/v\d\/amp-(access|subscriptions)-.+\.js)/
allow_cookies: 1,
block_regex: /(\.estadao\.com\.br\/(paywall\/|access\.js)|cdn\.ampproject\.org\/v\d\/amp-(access|subscriptions)-.+\.js)/
},
"O Globo (& Valor Econômico)": {
domain: "globo.com",

View file

@ -39,6 +39,12 @@
"useragent": "googlebot",
"upd_version": "3.3.5.1"
},
"O Estado de S. Paulo": {
"domain": "estadao.com.br",
"allow_cookies": 1,
"block_regex": "(\\.estadao\\.com\\.br\\/(paywall\\/|access\\.js)|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|subscriptions)-.+\\.js)",
"upd_version": "3.3.7.4"
},
"Granta Magazine": {
"domain": "granta.com",
"allow_cookies": 1,