mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:11:56 +01:00
Add Law360 (free articles only)
This commit is contained in:
parent
7da5252174
commit
85512d911a
7 changed files with 17 additions and 4 deletions
|
@ -78,6 +78,7 @@ _* free articles only._
|
|||
[Harvard Business Review](https://www.hbr.org) -
|
||||
[Inc.com](https://www.inc.com) -
|
||||
[Law.com](https://www.law.com)* -
|
||||
[Law360](https://www.law360.com)* -
|
||||
[MarketWatch](https://www.marketwatch.com) -
|
||||
[MIT Sloan Management Review](https://sloanreview.mit.edu) -
|
||||
[Modern Healthcare](https://www.modernhealthcare.com) -
|
||||
|
|
|
@ -258,7 +258,7 @@ var use_facebook_referer_default = ['clarin.com', 'fd.nl', 'ilmanifesto.it', 'la
|
|||
var use_facebook_referer = use_facebook_referer_default.slice();
|
||||
var use_google_referer_default = ['statista.com'];
|
||||
var use_google_referer = use_google_referer_default.slice();
|
||||
var use_twitter_referer_default = ['medium.com', 'towardsdatascience.com'];
|
||||
var use_twitter_referer_default = ['law360.com', 'medium.com', 'towardsdatascience.com'];
|
||||
var use_twitter_referer = use_twitter_referer_default.slice();
|
||||
var use_random_ip = ['esprit.presse.fr'];
|
||||
var change_headers = use_google_bot.concat(use_bing_bot, use_facebook_referer, use_google_referer, use_twitter_referer, use_random_ip);
|
||||
|
@ -1170,10 +1170,11 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
|||
let cl_elmerc_site = (matchUrlDomain('emol.cl', details.url) && matchUrlDomain('elmercurio.com', header_referer));
|
||||
let es_elesp_site = (matchUrlDomain('eestatic.com', details.url) && matchUrlDomain('elespanol.com', header_referer));
|
||||
let it_repubblica_site = (matchUrlDomain(['repstatic.it'], details.url) && matchUrlDomain(it_repubblica_domains, header_referer));
|
||||
let usa_law360_site = (matchUrlDomain('law360news.com', details.url) && matchUrlDomain('law360.com', header_referer));
|
||||
let usa_mw_site = (matchUrlDomain('wsj.net', details.url) && matchUrlDomain('marketwatch.com', header_referer));
|
||||
let usa_natgeo_site = (matchUrlDomain('natgeofe.com', details.url) && matchUrlDomain('nationalgeographic.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_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) && matchUrlDomain(['asiatimes.com', 'augsburger-allgemeine.de', 'barrons.com', 'belfasttelegraph.co.uk', 'cicero.de', 'cmjornal.pt', 'elpais.com', 'elperiodico.com', 'freiepresse.de', 'inc42.com', 'independent.ie', 'irishtimes.com', 'la-croix.com', 'marketwatch.com', 'nationalreview.com', 'noz.de', 'nwzonline.de', 'scmp.com', 'seekingalpha.com', 'shz.de', 'staradvertiser.com', 'sueddeutsche.de', 'svz.de', 'telegraph.co.uk', 'washingtonpost.com'].concat(au_news_corp_domains, au_nine_domains, de_madsack_domains, es_epiberica_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, it_repubblica_domains, usa_mcc_domains, usa_mng_domains, usa_theathletic_domains), header_referer));
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Add Law360 (free articles only)
|
||||
Fix Bloomberg (graphics)
|
||||
|
||||
* v2.3.4.1 (2021-08-23)
|
||||
|
|
|
@ -2110,6 +2110,13 @@ else if (matchDomain('jpost.com')) {
|
|||
removeDOMElement(...premium_banners);
|
||||
}
|
||||
|
||||
else if (matchDomain('law360.com')) {
|
||||
window.setTimeout(function () {
|
||||
let modal = document.querySelectorAll('div#NewsletterModal, div.modal-backdrop');
|
||||
removeDOMElement(...modal);
|
||||
}, 500); // Delay (in milliseconds)
|
||||
}
|
||||
|
||||
else if (matchDomain('livelaw.in')) {
|
||||
let paywall = document.querySelectorAll('div.restricted_message > div.story, div.restricted_message > div.row');
|
||||
if (paywall) {
|
||||
|
|
|
@ -279,6 +279,8 @@
|
|||
"*://*.lavoixdunord.fr/*",
|
||||
"*://*.lavozdigital.es/*",
|
||||
"*://*.law.com/*",
|
||||
"*://*.law360.com/*",
|
||||
"*://*.law360news.com/*",
|
||||
"*://*.lc.nl/*",
|
||||
"*://*.lecho.be/*",
|
||||
"*://*.ledauphine.com/*",
|
||||
|
@ -553,5 +555,5 @@
|
|||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.3.4.2"
|
||||
"version": "2.3.4.3"
|
||||
}
|
|
@ -303,7 +303,7 @@ function renderOptions() {
|
|||
(sites_custom[key]['allow_cookies']>0 ? ' | allow_cookies' : '') +
|
||||
(sites_custom[key]['block_javascript']>0 ? ' | block javascript' : '') +
|
||||
(sites_custom[key]['block_javascript_ext']>0 ? ' | block javascript ext' : '') +
|
||||
(sites_custom[key]['useragent'] ? ' | useragent: ' + sites_custom[key]['useragent'] : '');
|
||||
(sites_custom[key]['useragent'] ? ' | useragent: ' + sites_custom[key]['useragent'] : '') +
|
||||
(sites_custom[key]['referer'] ? ' | referer: ' + sites_custom[key]['referer'] : '');
|
||||
optionEl.value = key;
|
||||
selectEl.add(optionEl);
|
||||
|
|
1
sites.js
1
sites.js
|
@ -142,6 +142,7 @@ var defaultSites =
|
|||
"La Tribune": "latribune.fr",
|
||||
"La Vanguardia": "lavanguardia.com",
|
||||
"Law.com (free articles only)": "law.com",
|
||||
"Law360 (free articles only)": "law360.com",
|
||||
"Le Devoir": "ledevoir.com",
|
||||
"Le Journal du Dimanche": "lejdd.fr",
|
||||
"Le Journal du Net": "journaldunet.com",
|
||||
|
|
Loading…
Reference in a new issue