Fix Boston Globe

Only block paywall-script + cookie-fix.
This commit is contained in:
magnolia1234 2019-12-07 18:06:38 +01:00 committed by GitHub
parent f3353a4d27
commit 1d3fab9a21
2 changed files with 5 additions and 4 deletions

View File

@ -162,7 +162,6 @@ const allow_cookies = [
const remove_cookies = [
'ad.nl',
'asia.nikkei.com',
'bostonglobe.com',
'canberratimes.com.au',
'chicagobusiness.com',
'demorgen.be',
@ -203,6 +202,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'],
@ -241,7 +241,8 @@ var blockedRegexes = {
'nzherald.co.nz': /nzherald\.co\.nz\/.+\/headjs\/.+\.js/,
'businessinsider.com': /(.+\.tinypass\.com\/.+|cdn\.onesignal\.com\/sdks\/.+\.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)"
@ -315,7 +316,7 @@ chrome.webRequest.onBeforeRequest.addListener(function(details) {
return {cancel: true};
},
{
urls: ["*://*.thestar.com/*", "*://*.theglobeandmail.com/*", "*://*.afr.com/*", "*://*.bostonglobe.com/*"],
urls: ["*://*.thestar.com/*", "*://*.theglobeandmail.com/*", "*://*.afr.com/*"],
types: ["script"]
},
["blocking"]

View File

@ -71,7 +71,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 Canberra Times': 'canberratimes.com.au',
'The Diplomat': 'thediplomat.com',