mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:37:47 +01:00
Fix-update New Left Review
This commit is contained in:
parent
49d52de23f
commit
4e72a844e7
5 changed files with 10 additions and 13 deletions
|
@ -26,7 +26,6 @@ const restrictions = {
|
|||
'quora.com': /^((?!quora\.com\/search\?q=).)*$/,
|
||||
'seekingalpha.com': /.+\/seekingalpha\.com\/($|(amp\/)?(article|news)\/|samw\/)/,
|
||||
'techinasia.com': /\.techinasia\.com\/.+/,
|
||||
'telegraaf.nl': /\.telegraaf\.nl\/(cdn|statics|error\?|.+\/(\d){8,})\//,
|
||||
'wsj.com': /^((?!\/cn\.wsj\.com\/).)*$/
|
||||
}
|
||||
|
||||
|
@ -902,10 +901,9 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
|||
let inkl_site = (matchUrlDomain('cdn.jsdelivr.net', details.url) && matchUrlDomain('inkl.com', header_referer));
|
||||
let cl_elmerc_site = (matchUrlDomain('emol.cl', details.url) && matchUrlDomain('elmercurio.com', header_referer));
|
||||
let it_repubblica_site = (matchUrlDomain(['repstatic.it'], details.url) && matchUrlDomain(it_repubblica_domains, header_referer));
|
||||
let uk_nlr_site = (matchUrlDomain('stripe.com', details.url) && matchUrlDomain('newleftreview.org', header_referer));
|
||||
let usa_discmag_site = (matchUrlDomain('ctfassets.net', details.url) && matchUrlDomain('discovermagazine.com', header_referer));
|
||||
let usa_mw_site = (matchUrlDomain('wsj.net', details.url) && matchUrlDomain('marketwatch.com', header_referer));
|
||||
allow_ext_source = allow_ext_source || inkl_site || cl_elmerc_site || it_repubblica_site || uk_nlr_site || usa_discmag_site || usa_mw_site;
|
||||
allow_ext_source = allow_ext_source || inkl_site || cl_elmerc_site || it_repubblica_site || usa_discmag_site || usa_mw_site;
|
||||
|
||||
bpc_amp_site = (matchUrlDomain('cdn.ampproject.org', details.url) && matchUrlDomain(['augsburger-allgemeine.de', 'barrons.com', 'belfasttelegraph.co.uk', 'cicero.de', 'cmjornal.pt', 'elmundo.es', 'elpais.com', 'elperiodico.com', 'expansion.com', 'freiepresse.de', 'independent.ie', 'irishtimes.com', 'la-croix.com', 'lne.es', 'marketwatch.com', 'nationalreview.com', 'noz.de', 'seekingalpha.com', 'shz.de', 'sueddeutsche.de', 'svz.de', 'telegraph.co.uk'].concat(au_news_corp_domains, au_nine_domains, de_madsack_domains, de_rp_medien_domains, es_grupo_vocento_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, it_repubblica_domains, usa_mcc_domains), header_referer));
|
||||
}
|
||||
|
|
|
@ -6,11 +6,6 @@ function bpc_count_daily_users(dateStr) {
|
|||
daily_users: {},
|
||||
}, function (items_local) {
|
||||
daily_users = items_local.daily_users;
|
||||
ext_api.storage.sync.get({
|
||||
daily_users: {},
|
||||
}, function (items) {
|
||||
if (!items_local.daily_users.date)
|
||||
daily_users = items.daily_users;
|
||||
if (daily_users.date !== dateStr) {
|
||||
daily_users.date = dateStr;
|
||||
ext_api.storage.local.set({
|
||||
|
@ -20,9 +15,11 @@ function bpc_count_daily_users(dateStr) {
|
|||
});
|
||||
let count_json = 'https://bitbucket.org/bpc_redux/bpc-firefox-daily-users/downloads/bpc-daily-users-' + dateStr + '.json';
|
||||
fetch(count_json, {mode: 'no-cors'});
|
||||
let count_mobile_json = 'https://bitbucket.org/bpc_redux/bpc-firefox-mobile-daily-users/downloads/bpc-daily-users-' + dateStr + '.json';
|
||||
if (window.navigator && window.navigator.userAgent.match(/(mobile|android)/i))
|
||||
fetch(count_mobile_json, {mode: 'no-cors'});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function currentDateStr() {
|
||||
|
|
|
@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||
Post-release
|
||||
Add Atlantico (France)
|
||||
Fix-update Chronicle of Higher Education (scroll)
|
||||
Fix-update New Left Review
|
||||
|
||||
* v2.1.0.0 (2021-02-28)
|
||||
Add Die Rheinpfalz (Germany)
|
||||
|
|
|
@ -926,7 +926,7 @@ else if (matchDomain('faz.net')) {
|
|||
str = str.replace(/(?:^|[\w\"\“])(\.|\?|!)(?=[A-ZÖÜ\„][A-Za-zÀ-ÿ\„]{1,})/gm, "$&\n\n");
|
||||
str = str.replace(/([a-z\"\“])(?=[A-Z](?=[A-Za-zÀ-ÿ]+))/gm, "$&\n\n");
|
||||
// exceptions: names with alternating lower/uppercase (no general fix)
|
||||
let str_rep_arr = ["BaFin", "BerlHG", "BfArM", "BilMoG", "DiGA", "EuGH", "eWpG", "GlaxoSmithKline", "gGmbH", "IfSG", "iMessage", "iOS", "iPad", "iPhone", "medRxiv", "mRNA", "PlosOne", "StVO"];
|
||||
let str_rep_arr = ["BaFin", "BerlHG", "BfArM", "BilMoG", "DiGA", "EuGH", "eWpG", "FinTechRat", "GlaxoSmithKline", "gGmbH", "IfSG", "iMessage", "iOS", "iPad", "iPhone", "medRxiv", "mRNA", "PlosOne", "StVO"];
|
||||
let str_rep_split, str_rep_src;
|
||||
for (let str_rep of str_rep_arr) {
|
||||
str_rep_split = str_rep.split(/([a-z]+)(?=[A-Z](?=[A-Za-z]+))/);
|
||||
|
@ -963,6 +963,8 @@ else if (matchDomain('faz.net')) {
|
|||
}
|
||||
});
|
||||
}
|
||||
let lay_paysocial = document.querySelector('div.lay-PaySocial');
|
||||
removeDOMElement(lay_paysocial);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -477,10 +477,9 @@
|
|||
"*://*.pasedigital.cl/*",
|
||||
"*://*.rcsobjects.it/*",
|
||||
"*://*.repstatic.it/*",
|
||||
"*://*.stripe.com/*",
|
||||
"*://*.userzoom.com/*",
|
||||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.1.0.2"
|
||||
"version": "2.1.0.3"
|
||||
}
|
Loading…
Reference in a new issue