diff --git a/README.md b/README.md index 72892df..c5ca0f6 100755 --- a/README.md +++ b/README.md @@ -109,6 +109,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) - [Quartz](https://qz.com)* - diff --git a/background.js b/background.js index e503b17..be6d5f0 100755 --- a/background.js +++ b/background.js @@ -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)); } diff --git a/changelog.txt b/changelog.txt index 7fed63e..3695b5d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Chrome Post-release +Add Law360 (free articles only) Fix Bloomberg (graphics) * v2.3.4.1 (2021-08-23) diff --git a/contentScript.js b/contentScript.js index d45bf3a..69c5ff0 100755 --- a/contentScript.js +++ b/contentScript.js @@ -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) { diff --git a/custom/manifest.json b/custom/manifest.json index fdc4186..4efb0e7 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -38,5 +38,5 @@ "webRequestBlocking", "" ], - "version": "2.3.4.2" + "version": "2.3.4.3" } \ No newline at end of file diff --git a/manifest.json b/manifest.json index f43944c..e1b25d5 100755 --- a/manifest.json +++ b/manifest.json @@ -267,6 +267,8 @@ "*://*.lavoixdunord.fr/*", "*://*.lavozdigital.es/*", "*://*.law.com/*", + "*://*.law360.com/*", + "*://*.law360news.com/*", "*://*.lc.nl/*", "*://*.lecho.be/*", "*://*.ledauphine.com/*", @@ -541,5 +543,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.3.4.2" + "version": "2.3.4.3" } \ No newline at end of file diff --git a/options/options_custom.js b/options/options_custom.js index 8e82090..4408622 100644 --- a/options/options_custom.js +++ b/options/options_custom.js @@ -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); diff --git a/sites.js b/sites.js index b1c3b42..25bb43b 100755 --- a/sites.js +++ b/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",