From d2af3e054a65008d7bd828e62b2e1baa6b86dd82 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sat, 7 Dec 2019 18:33:38 +0100 Subject: [PATCH] Fix Boston Globe Only block paywall-script + cookie-fix. --- background.js | 6 ++++-- options.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/background.js b/background.js index a6e95ca..8548b7d 100644 --- a/background.js +++ b/background.js @@ -188,6 +188,7 @@ const remove_cookies_select_hold = { // select only specific cookie(s) to drop from remove_cookies domains const remove_cookies_select_drop = { 'ad.nl': ['temptationTrackingId'], + 'bostonglobe.com': ['FMPaywall'], 'demorgen.be': ['TID_ID'], 'economist.com': ['rvuuid'], 'ed.nl': ['temptationTrackingId'], @@ -223,7 +224,8 @@ const blockedRegexes = { 'haaretz.co.il': /haaretz\.co\.il\/htz\/js\/inter\.js/, 'nzherald.co.nz': /nzherald\.co\.nz\/.+\/headjs\/.+\.js/, 'economist.com': /.+\.tinypass\.com\/.+/, -'lrb.co.uk': /.+\.tinypass\.com\/.+/ +'lrb.co.uk': /.+\.tinypass\.com\/.+/, +'bostonglobe.com': /meter\.bostonglobe\.com\/js\/.+/ }; const userAgentDesktop = "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" @@ -272,7 +274,7 @@ chrome.webRequest.onBeforeRequest.addListener(function(details) { return {cancel: true}; }, { - urls: ["*://*.theglobeandmail.com/*", "*://*.thestar.com/*", "*://*.newstatesman.com/*", "*://*.bostonglobe.com/*", "*://*.afr.com/*"], + urls: ["*://*.theglobeandmail.com/*", "*://*.thestar.com/*", "*://*.newstatesman.com/*", "*://*.afr.com/*"], types: ["script"] }, ["blocking"] diff --git a/options.js b/options.js index 9b980b4..b82905c 100644 --- a/options.js +++ b/options.js @@ -60,7 +60,7 @@ var defaultSites = { 'The Atlantic': 'theatlantic.com', 'The Australian': 'theaustralian.com.au', 'The Australian Financial Review (javascript disabled)': 'afr.com', - 'The Boston Globe (javascript disabled)': 'bostonglobe.com', + 'The Boston Globe': 'bostonglobe.com', 'The Business Journals': 'bizjournals.com', 'The Diplomat': 'thediplomat.com', 'The Globe and Mail (javascript disabled)': 'theglobeandmail.com',