mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-09-20 03:21:07 +02:00
Fix Folha de S. Paulo (piaui)
This commit is contained in:
parent
2a1b1ab831
commit
089b812e81
5 changed files with 38 additions and 5 deletions
|
@ -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,6 +2389,18 @@ else if (matchDomain('estadao.com.br')) {
|
|||
}
|
||||
|
||||
else if (matchDomain('folha.uol.com.br')) {
|
||||
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 {
|
||||
if (window.location.pathname.startsWith('/amp/')) {
|
||||
amp_unhide_subscr_section('amp-ad, amp-sticky-ad, amp-embed');
|
||||
} else {
|
||||
|
@ -2396,6 +2408,7 @@ else if (matchDomain('folha.uol.com.br')) {
|
|||
removeDOMElement(signup);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('blogfolha.uol.com.br')) {
|
||||
let hidden_images = document.querySelectorAll('div[id^="attachment_"] > a > img[src^="http:"][srcset]');
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -694,5 +694,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…
Reference in a new issue