From f0a0ad1ec4461390f75bf984b0c57b50ad9015df Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Wed, 8 Jan 2020 23:21:21 +0100 Subject: [PATCH] Fix NYTimes (layout) Block specific Javascript instead of Googlebot user-agent. --- background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/background.js b/background.js index f1e29248..512826cf 100644 --- a/background.js +++ b/background.js @@ -231,7 +231,6 @@ const use_google_bot = [ 'haaretz.com', 'lemonde.fr', 'nknews.org', -'nytimes.com', 'prime.economictimes.indiatimes.com', 'quora.com', 'telegraph.co.uk', @@ -267,7 +266,8 @@ const blockedRegexes = { 'afr.com': /afr\.com\/assets\/vendorsReactRedux_client.+\.js/, 'theglobeandmail.com': /theglobeandmail\.com\/pb\/resources\/scripts\/build\/chunk-bootstraps\/.+\.js/, 'leparisien.fr': /.+\.tinypass\.com\/.+/, -'lesechos.fr': /.+\.tinypass\.com\/.+/ +'lesechos.fr': /.+\.tinypass\.com\/.+/, +'nytimes.com': /(.+meter-svc\.nytimes\.com\/meter\.js.+|.+mwcm\.nyt\.com\/.+\.js)/ }; const userAgentDesktop = "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"