mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:17:46 +01:00
Add The (New Orleans) Advocate
This commit is contained in:
parent
d553716d8c
commit
ab24310e8e
9 changed files with 58 additions and 8 deletions
|
@ -178,9 +178,11 @@ Grouped in options:\
|
|||
[San Francisco Chronicle](https://www.sfchronicle.com) -
|
||||
[Star Tribune](https://www.startribune.com) -
|
||||
[Tampa Bay Times](https://www.tampabay.com) -
|
||||
[The Advocate](https://www.theadvocate.com) -
|
||||
[The Atlanta Journal-Constitution](https://www.ajc.com) -
|
||||
[The Boston Globe](https://www.bostonglobe.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 Philadelphia Inquirer](https://www.inquirer.com) -
|
||||
[Winston-Salem Journal](https://www.journalnow.com)
|
||||
|
|
|
@ -693,7 +693,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
|||
|
||||
// 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_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'));
|
||||
if (usa_lee_ent_domain) {
|
||||
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));
|
||||
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) {
|
||||
|
|
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||
|
||||
Post-release
|
||||
Add Koelner Stadt-Anzeiger & Koelnische Rundschau
|
||||
Add The (New Orleans) Advocate
|
||||
Fix Lecho.be (separate from Groupe Rossel)
|
||||
Fix Repubblica sites (no amp)
|
||||
|
||||
|
|
|
@ -2201,9 +2201,8 @@ else if (matchDomain('newrepublic.com')) {
|
|||
removeDOMElement(pw_popups, ...ads);
|
||||
}
|
||||
|
||||
else if (matchDomain('newyorker.com') && window.location.href.split('?')[0].match(/\.com\/.+\//)) {
|
||||
let url = window.location.href;
|
||||
if (url.endsWith('/amp')) {
|
||||
else if (matchDomain('newyorker.com') && window.location.pathname.length > 1) {
|
||||
if (window.location.pathname.endsWith('/amp')) {
|
||||
amp_unhide_subscr_section('.ad');
|
||||
} else {
|
||||
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')) {
|
||||
let article_content = document.querySelector('.article__content');
|
||||
if (article_content) {
|
||||
|
|
|
@ -4,6 +4,12 @@
|
|||
"domain": "aargauerzeitung.ch",
|
||||
"useragent": "googlebot"
|
||||
},
|
||||
"Abqjournal.com": {
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.amazonaws\\.com\\/abq_pw_",
|
||||
"domain": "abqjournal.com",
|
||||
"useragent": "googlebot"
|
||||
},
|
||||
"Ara.cat": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "ara.cat",
|
||||
|
@ -19,6 +25,9 @@
|
|||
"domain": "bnn.de",
|
||||
"useragent": "googlebot"
|
||||
},
|
||||
"Brainly.com": {
|
||||
"domain": "brainly.com"
|
||||
},
|
||||
"Calgaryherald.com": {
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.tinypass\\.com\\/",
|
||||
|
@ -29,6 +38,11 @@
|
|||
"domain": "capital.bg",
|
||||
"useragent": "googlebot"
|
||||
},
|
||||
"Chicago.suntimes.com": {
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.tinypass\\.com\\/",
|
||||
"domain": "chicago.suntimes.com"
|
||||
},
|
||||
"Christianitytoday.com": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "christianitytoday.com",
|
||||
|
@ -71,6 +85,11 @@
|
|||
"domain": "luzernerzeitung.ch",
|
||||
"useragent": "googlebot"
|
||||
},
|
||||
"Morgenbladet.no": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "morgenbladet.no",
|
||||
"useragent": "googlebot"
|
||||
},
|
||||
"Muensterschezeitung.de": {
|
||||
"allow_cookies": 1,
|
||||
"amp_unhide": 1,
|
||||
|
|
4
lib/purify.min.js
vendored
4
lib/purify.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -369,6 +369,7 @@
|
|||
"*://*.nikkei.com/*",
|
||||
"*://*.nj.com/*",
|
||||
"*://*.nknews.org/*",
|
||||
"*://*.nola.com/*",
|
||||
"*://*.noordhollandsdagblad.nl/*",
|
||||
"*://*.nordeclair.fr/*",
|
||||
"*://*.nordlittoral.fr/*",
|
||||
|
@ -470,6 +471,7 @@
|
|||
"*://*.tennessean.com/*",
|
||||
"*://*.the-american-interest.com/*",
|
||||
"*://*.the-tls.co.uk/*",
|
||||
"*://*.theadvocate.com/*",
|
||||
"*://*.theadvocate.com.au/*",
|
||||
"*://*.theage.com.au/*",
|
||||
"*://*.theartnewspaper.com/*",
|
||||
|
@ -511,6 +513,7 @@
|
|||
"*://*.tivi.fi/*",
|
||||
"*://*.tlz.de/*",
|
||||
"*://*.towardsdatascience.com/*",
|
||||
"*://*.townnews.com/*",
|
||||
"*://*.townsvillebulletin.com.au/*",
|
||||
"*://*.tradewindsnews.com/*",
|
||||
"*://*.tri-cityherald.com/*",
|
||||
|
@ -584,5 +587,5 @@
|
|||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.4.6.2"
|
||||
"version": "2.4.6.3"
|
||||
}
|
||||
|
|
9
sites.js
9
sites.js
|
@ -1315,6 +1315,15 @@ var defaultSites = {
|
|||
allow_cookies: 1,
|
||||
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": {
|
||||
domain: "theage.com.au",
|
||||
group_rule: "###_gr_au_nine_domains"
|
||||
|
|
|
@ -27,6 +27,15 @@
|
|||
"allow_cookies": 1,
|
||||
"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": {
|
||||
"domain": "bostonglobe.com",
|
||||
"allow_cookies": 1,
|
||||
|
|
Loading…
Reference in a new issue