Add The (New Orleans) Advocate

This commit is contained in:
magnolia1234 2021-12-08 17:45:19 +01:00
parent d553716d8c
commit ab24310e8e
9 changed files with 58 additions and 8 deletions

View file

@ -178,9 +178,11 @@ Grouped in options:\
[San Francisco Chronicle](https://www.sfchronicle.com) - [San Francisco Chronicle](https://www.sfchronicle.com) -
[Star Tribune](https://www.startribune.com) - [Star Tribune](https://www.startribune.com) -
[Tampa Bay Times](https://www.tampabay.com) - [Tampa Bay Times](https://www.tampabay.com) -
[The Advocate](https://www.theadvocate.com) -
[The Atlanta Journal-Constitution](https://www.ajc.com) - [The Atlanta Journal-Constitution](https://www.ajc.com) -
[The Boston Globe](https://www.bostonglobe.com) - [The Boston Globe](https://www.bostonglobe.com) -
[The Dallas Morning News](https://www.dallasnews.com) - [The Dallas Morning News](https://www.dallasnews.com) -
[The New Orleans Advocate/The Times-Picayune](https://www.nola.com) -
[The Seattle Times](https://www.seattletimes.com) - [The Seattle Times](https://www.seattletimes.com) -
[The Philadelphia Inquirer](https://www.inquirer.com) - [The Philadelphia Inquirer](https://www.inquirer.com) -
[Winston-Salem Journal](https://www.journalnow.com) [Winston-Salem Journal](https://www.journalnow.com)

View file

@ -693,7 +693,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
// block script for additional Lee Enterprises sites (opt-in to custom sites) // block script for additional Lee Enterprises sites (opt-in to custom sites)
var usa_lee_ent_domains = grouped_sites['###_usa_lee_ent']; var usa_lee_ent_domains = grouped_sites['###_usa_lee_ent'];
var usa_lee_ent_domain = (details.url.match(/\.com\/shared-content\/art\/tncms\/.+\.js/) && ['script'].includes(details.type) && var usa_lee_ent_domain = (details.url.match(/\.townnews\.com\/central\.leetemplates\.com\//) && ['image'].includes(details.type) &&
!matchUrlDomain(usa_lee_ent_domains, header_referer) && enabledSites.includes('###_usa_lee_ent')); !matchUrlDomain(usa_lee_ent_domains, header_referer) && enabledSites.includes('###_usa_lee_ent'));
if (usa_lee_ent_domain) { if (usa_lee_ent_domain) {
let lee_ent_domain = urlHost(header_referer).replace(/^(www|m)\./, ''); let lee_ent_domain = urlHost(header_referer).replace(/^(www|m)\./, '');
@ -805,7 +805,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
let usa_today_site = (matchUrlDomain('gannett-cdn.com', details.url) && matchUrlDomain(['usatoday.com'], header_referer)); let usa_today_site = (matchUrlDomain('gannett-cdn.com', details.url) && matchUrlDomain(['usatoday.com'], header_referer));
allow_ext_source = allow_ext_source || inkl_site || cl_elmerc_site || es_elesp_site || it_repubblica_site || usa_law360_site || usa_mw_site || usa_natgeo_site || usa_today_site; allow_ext_source = allow_ext_source || inkl_site || cl_elmerc_site || es_elesp_site || it_repubblica_site || usa_law360_site || usa_mw_site || usa_natgeo_site || usa_today_site;
bpc_amp_site = matchUrlDomain('cdn.ampproject.org', details.url) && (enabledSites.includes('cdn.ampproject.org') || matchUrlDomain(defaultSites_domains.concat(amp_unhide), header_referer)); bpc_amp_site = matchUrlDomain('cdn.ampproject.org', details.url);
} }
if (!isSiteEnabled(details) && !allow_ext_source && !bpc_amp_site && !au_swm_site) { if (!isSiteEnabled(details) && !allow_ext_source && !bpc_amp_site && !au_swm_site) {

View file

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release Post-release
Add Koelner Stadt-Anzeiger & Koelnische Rundschau Add Koelner Stadt-Anzeiger & Koelnische Rundschau
Add The (New Orleans) Advocate
Fix Lecho.be (separate from Groupe Rossel) Fix Lecho.be (separate from Groupe Rossel)
Fix Repubblica sites (no amp) Fix Repubblica sites (no amp)

View file

@ -2201,9 +2201,8 @@ else if (matchDomain('newrepublic.com')) {
removeDOMElement(pw_popups, ...ads); removeDOMElement(pw_popups, ...ads);
} }
else if (matchDomain('newyorker.com') && window.location.href.split('?')[0].match(/\.com\/.+\//)) { else if (matchDomain('newyorker.com') && window.location.pathname.length > 1) {
let url = window.location.href; if (window.location.pathname.endsWith('/amp')) {
if (url.endsWith('/amp')) {
amp_unhide_subscr_section('.ad'); amp_unhide_subscr_section('.ad');
} else { } else {
let paywall_bar = document.querySelector('.paywall-bar'); let paywall_bar = document.querySelector('.paywall-bar');
@ -2224,6 +2223,14 @@ else if (matchDomain('newyorker.com') && window.location.href.split('?')[0].matc
} }
} }
else if (matchDomain(['nola.com', 'theadvocate.com'])) {
if (window.location.pathname.endsWith('.amp.html')) {
let body_hidden = document.querySelector('.site-container');
if (body_hidden)
body_hidden.setAttribute('style', 'display:block;');
}
}
else if (matchDomain('nzherald.co.nz')) { else if (matchDomain('nzherald.co.nz')) {
let article_content = document.querySelector('.article__content'); let article_content = document.querySelector('.article__content');
if (article_content) { if (article_content) {

View file

@ -4,6 +4,12 @@
"domain": "aargauerzeitung.ch", "domain": "aargauerzeitung.ch",
"useragent": "googlebot" "useragent": "googlebot"
}, },
"Abqjournal.com": {
"allow_cookies": 1,
"block_regex": "\\.amazonaws\\.com\\/abq_pw_",
"domain": "abqjournal.com",
"useragent": "googlebot"
},
"Ara.cat": { "Ara.cat": {
"allow_cookies": 1, "allow_cookies": 1,
"domain": "ara.cat", "domain": "ara.cat",
@ -19,6 +25,9 @@
"domain": "bnn.de", "domain": "bnn.de",
"useragent": "googlebot" "useragent": "googlebot"
}, },
"Brainly.com": {
"domain": "brainly.com"
},
"Calgaryherald.com": { "Calgaryherald.com": {
"allow_cookies": 1, "allow_cookies": 1,
"block_regex": "\\.tinypass\\.com\\/", "block_regex": "\\.tinypass\\.com\\/",
@ -29,6 +38,11 @@
"domain": "capital.bg", "domain": "capital.bg",
"useragent": "googlebot" "useragent": "googlebot"
}, },
"Chicago.suntimes.com": {
"allow_cookies": 1,
"block_regex": "\\.tinypass\\.com\\/",
"domain": "chicago.suntimes.com"
},
"Christianitytoday.com": { "Christianitytoday.com": {
"allow_cookies": 1, "allow_cookies": 1,
"domain": "christianitytoday.com", "domain": "christianitytoday.com",
@ -71,6 +85,11 @@
"domain": "luzernerzeitung.ch", "domain": "luzernerzeitung.ch",
"useragent": "googlebot" "useragent": "googlebot"
}, },
"Morgenbladet.no": {
"allow_cookies": 1,
"domain": "morgenbladet.no",
"useragent": "googlebot"
},
"Muensterschezeitung.de": { "Muensterschezeitung.de": {
"allow_cookies": 1, "allow_cookies": 1,
"amp_unhide": 1, "amp_unhide": 1,

4
lib/purify.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -369,6 +369,7 @@
"*://*.nikkei.com/*", "*://*.nikkei.com/*",
"*://*.nj.com/*", "*://*.nj.com/*",
"*://*.nknews.org/*", "*://*.nknews.org/*",
"*://*.nola.com/*",
"*://*.noordhollandsdagblad.nl/*", "*://*.noordhollandsdagblad.nl/*",
"*://*.nordeclair.fr/*", "*://*.nordeclair.fr/*",
"*://*.nordlittoral.fr/*", "*://*.nordlittoral.fr/*",
@ -470,6 +471,7 @@
"*://*.tennessean.com/*", "*://*.tennessean.com/*",
"*://*.the-american-interest.com/*", "*://*.the-american-interest.com/*",
"*://*.the-tls.co.uk/*", "*://*.the-tls.co.uk/*",
"*://*.theadvocate.com/*",
"*://*.theadvocate.com.au/*", "*://*.theadvocate.com.au/*",
"*://*.theage.com.au/*", "*://*.theage.com.au/*",
"*://*.theartnewspaper.com/*", "*://*.theartnewspaper.com/*",
@ -511,6 +513,7 @@
"*://*.tivi.fi/*", "*://*.tivi.fi/*",
"*://*.tlz.de/*", "*://*.tlz.de/*",
"*://*.towardsdatascience.com/*", "*://*.towardsdatascience.com/*",
"*://*.townnews.com/*",
"*://*.townsvillebulletin.com.au/*", "*://*.townsvillebulletin.com.au/*",
"*://*.tradewindsnews.com/*", "*://*.tradewindsnews.com/*",
"*://*.tri-cityherald.com/*", "*://*.tri-cityherald.com/*",
@ -584,5 +587,5 @@
"*://*.wallkit.net/*", "*://*.wallkit.net/*",
"*://*.wsj.net/*" "*://*.wsj.net/*"
], ],
"version": "2.4.6.2" "version": "2.4.6.3"
} }

View file

@ -1315,6 +1315,15 @@ var defaultSites = {
allow_cookies: 1, allow_cookies: 1,
useragent: "googlebot" useragent: "googlebot"
}, },
"The (New Orleans) Advocate": {
domain: "###_usa_theadvocate",
group: [
"nola.com",
"theadvocate.com"
],
allow_cookies: 1,
block_regex: /(loader-cdn\.azureedge\.net\/|\.blueconic\.net\/|js\.matheranalytics\.com\/)/
},
"The Age": { "The Age": {
domain: "theage.com.au", domain: "theage.com.au",
group_rule: "###_gr_au_nine_domains" group_rule: "###_gr_au_nine_domains"

View file

@ -27,6 +27,15 @@
"allow_cookies": 1, "allow_cookies": 1,
"block_regex": "\\.internazionale\\.it\\/assets\\/js\\/main\\.\\d{2,}\\.js" "block_regex": "\\.internazionale\\.it\\/assets\\/js\\/main\\.\\d{2,}\\.js"
}, },
"The (New Orleans) Advocate": {
"domain": "###_usa_theadvocate",
"group": [
"nola.com",
"theadvocate.com"
],
"allow_cookies": 1,
"block_regex": "(loader-cdn\\.azureedge\\.net\\/|\\.blueconic\\.net\\/|js\\.matheranalytics\\.com\\/)"
},
"The Boston Globe": { "The Boston Globe": {
"domain": "bostonglobe.com", "domain": "bostonglobe.com",
"allow_cookies": 1, "allow_cookies": 1,