mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-12 01:10:24 +00:00
Fix Australia News Corp (no amp-fix)
This commit is contained in:
parent
4a748dd4c4
commit
a2268dfe60
@ -649,7 +649,8 @@ ext_api.webRequest.onBeforeRequest.addListener(function (details) {
|
||||
);
|
||||
|
||||
// Australia News Corp redirect subscribe to amp
|
||||
var au_news_corp_subscr = au_news_corp_domains.filter(domain => !['codesports.com.au', 'goldcoastbulletin.com.au', 'ntnews.com.au', 'thechronicle.com.au', 'weeklytimesnow.com.au'].includes(domain)).map(domain => '*://www.' + domain + '/subscribe/*');
|
||||
var au_news_corp_no_amp_fix = ['adelaidenow.com.au', 'codesports.com.au', 'goldcoastbulletin.com.au', 'ntnews.com.au', 'thechronicle.com.au', 'themercury.com.au', 'weeklytimesnow.com.au'];
|
||||
var au_news_corp_subscr = au_news_corp_domains.filter(domain => !au_news_corp_no_amp_fix.includes(domain)).map(domain => '*://www.' + domain + '/subscribe/*');
|
||||
ext_api.webRequest.onBeforeRequest.addListener(function (details) {
|
||||
if (!isSiteEnabled(details) || details.url.includes('/digitalprinteditions') || !(details.url.includes('dest=') && details.url.split('dest=')[1].split('&')[0])) {
|
||||
return;
|
||||
@ -908,7 +909,7 @@ if (matchUrlDomain(change_headers, details.url) && !ignore_types.includes(detail
|
||||
!(matchUrlDomain(es_grupo_vocento_domains, details.url) && mobile) &&
|
||||
!(matchUrlDomain('barrons.com', details.url) && enabledSites.includes('#options_disable_gb_barrons')) &&
|
||||
!(matchUrlDomain(['economictimes.com', 'economictimes.indiatimes.com'], details.url) && !details.url.split(/\?|#/)[0].endsWith('.cms')) &&
|
||||
!(matchUrlDomain(au_news_corp_domains, details.url) && (details.url.includes('?amp') || enabledSites.includes('#options_disable_gb_au_news_corp'))) &&
|
||||
!(matchUrlDomain(au_news_corp_domains, details.url) && (details.url.includes('?amp') || (!matchUrlDomain(au_news_corp_no_amp_fix, details.url) && enabledSites.includes('#options_disable_gb_au_news_corp')))) &&
|
||||
!(matchUrlDomain('uol.com.br', details.url) && !matchUrlDomain('folha.uol.com.br', details.url)) &&
|
||||
!(matchUrlDomain('wsj.com', details.url) && (enabledSites.includes('#options_disable_gb_wsj') || !details.url.includes('/articles/')));
|
||||
var bingbotEnabled = matchUrlDomain(use_bing_bot, details.url) &&
|
||||
|
@ -6,6 +6,7 @@ Post-release
|
||||
Add DHnet.be
|
||||
Add TagesAnzeiger.ch (link to archive.is)
|
||||
Remove Finance.si (fix obsolete)
|
||||
Fix Australia News Corp (no amp-fix)
|
||||
Fix Lc.nl
|
||||
Update block general paywall script (FewCents)
|
||||
|
||||
|
@ -3764,7 +3764,7 @@ else if (matchDomain('newscientist.com')) {
|
||||
|
||||
else if (matchDomain('newsday.com')) {
|
||||
if (window.location.pathname.startsWith('/amp/')) {
|
||||
amp_unhide_access_hide('="AccessLevel = \'Full Content Access\' OR Error = true"', '="AccessLevel = \'Page View Limit\'"');
|
||||
amp_unhide_access_hide('="AccessLevel = \'Full Content Access\' OR Error = true"', '="Error != true AND UserState != \'Subscribed\'"');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -51,5 +51,5 @@
|
||||
"webRequestBlocking",
|
||||
"*://*/*"
|
||||
],
|
||||
"version": "3.0.5.2"
|
||||
"version": "3.0.5.3"
|
||||
}
|
||||
|
@ -735,5 +735,5 @@
|
||||
"*://*.wallkit.net/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "3.0.5.2"
|
||||
"version": "3.0.5.3"
|
||||
}
|
||||
|
2
sites.js
2
sites.js
@ -2372,7 +2372,7 @@ var defaultSites = {
|
||||
"Check for update rules at startup": {
|
||||
domain: "#options_optin_update_rules"
|
||||
},
|
||||
"Australia News Corp - no Googlebot (blocked)": {
|
||||
"Australia News Corp - no Googlebot (blocked; only disabled when amp-fix)": {
|
||||
domain: "#options_disable_gb_au_news_corp"
|
||||
},
|
||||
"Barron's - no Googlebot (http error 500)": {
|
||||
|
Loading…
Reference in New Issue
Block a user