Fix Folha de S. Paulo (piaui)
This commit is contained in:
parent
f7e6e28d04
commit
47f0fe91f4
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -43,5 +43,5 @@
|
||||
"webRequestBlocking",
|
||||
"<all_urls>"
|
||||
],
|
||||
"version": "2.7.6.6"
|
||||
"version": "2.7.6.7"
|
||||
}
|
||||
|
@ -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"
|
||||
|
@ -682,5 +682,5 @@
|
||||
"*://*.wsj.net/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "2.7.6.6"
|
||||
"version": "2.7.6.7"
|
||||
}
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user