Fix Folha de S. Paulo (piaui)

This commit is contained in:
magnolia1234 2022-07-24 08:50:03 +02:00
parent 2a1b1ab831
commit 089b812e81
5 changed files with 38 additions and 5 deletions

View file

@ -5,6 +5,7 @@ Post-release
Add Saltwire Network (Canada)
Add StuDocu (no downloads)
Remove The Ken (fix not working)
Fix Folha de S. Paulo (piaui)
Fix Foreign Affairs (js)
Fix Krautreporter.de
Fix Le Devoir (cookie)

View file

@ -2389,11 +2389,24 @@ else if (matchDomain('estadao.com.br')) {
}
else if (matchDomain('folha.uol.com.br')) {
if (window.location.pathname.startsWith('/amp/')) {
amp_unhide_subscr_section('amp-ad, amp-sticky-ad, amp-embed');
if (matchDomain('piaui.folha.uol.com.br')) {
if (window.location.search.startsWith('?amp')) {
amp_unhide_subscr_section();
} else {
let paywall = document.querySelector('.revista--interna__assineonly');
let amphtml = document.querySelector('link[rel="amphtml"]');
if (paywall && amphtml) {
removeDOMElement(paywall);
window.location.href = amphtml.href;
}
}
} else {
let signup = document.querySelector('.c-top-signup');
removeDOMElement(signup);
if (window.location.pathname.startsWith('/amp/')) {
amp_unhide_subscr_section('amp-ad, amp-sticky-ad, amp-embed');
} else {
let signup = document.querySelector('.c-top-signup');
removeDOMElement(signup);
}
}
}

View file

@ -61,6 +61,11 @@
"block_regex": "\\.tinypass\\.com\\/",
"domain": "heraldscotland.com"
},
"Inews.co.uk": {
"allow_cookies": 1,
"block_regex": "\\.tinypass\\.com\\/",
"domain": "inews.co.uk"
},
"Internationalepolitik.de": {
"allow_cookies": 1,
"domain": "internationalepolitik.de"

View file

@ -694,5 +694,5 @@
"*://*.wsj.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.7.6.6"
"version": "2.7.6.7"
}

View file

@ -1,4 +1,18 @@
{
"Folha de S. Paulo": {
"domain": "###_br_folha",
"group": [
"folha.uol.com.br",
"blogfolha.uol.com.br"
],
"allow_cookies": 1,
"block_regex": "(\\.folha\\.uol\\.com\\.br\\/paywall\\/js\\/|paywall\\.folha\\.uol\\.com\\.br\\/|js\\.matheranalytics\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js)",
"useragent": "googlebot",
"amp_redirect": {
"paywall": ".revista--interna__assineonly"
},
"amp_unhide": 1
},
"Foreign Affairs": {
"domain": "foreignaffairs.com",
"block_regex": "\\.foreignaffairs\\.com\\/modules\\/custom\\/fa_paywall_js\\/js\\/paywall\\.js"