From 673455e58af732d353743a542a4aa0cc1a6007bb Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 29 Sep 2019 17:27:24 -0700 Subject: [PATCH] Disable JS on bostonglobe.com --- README.md | 1 + background.js | 5 ++++- options.js | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1eeeb09..0d7ac6c 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ [The Age](https://www.theage.com.au)\ [The Australian](https://www.theaustralian.com.au)\ [The Australian Financial Review](https://www.afr.com)\ +[The Boston Globe](https://www.bostonglobe.com)\ [The Business Journals](https://www.bizjournals.com)\ [The Diplomat](https://www.thediplomat.com)\ [The Globe and Mail](https://www.theglobeandmail.com)\ diff --git a/background.js b/background.js index c7bce80..72f9ac6 100644 --- a/background.js +++ b/background.js @@ -50,6 +50,7 @@ var defaultSites = { 'The Age': 'theage.com.au', 'The Australian': 'theaustralian.com.au', 'The Australian Financial Review': 'afr.com', + 'The Boston Globe': 'bostonglobe.com', 'The Business Journals': 'bizjournals.com', 'The Diplomat': 'thediplomat.com', 'The Globe and Mail': 'theglobeandmail.com', @@ -88,6 +89,7 @@ const allow_cookies = [ 'letemps.ch', 'mercurynews.com', 'economist.com', +'bostonglobe.com', 'denverpost.com', 'hacked.com', 'ocregister.com', @@ -114,6 +116,7 @@ const remove_cookies = [ 'mercurynews.com', 'theage.com.au', 'economist.com', +'bostonglobe.com', 'denverpost.com', 'hacked.com', 'ocregister.com', @@ -232,7 +235,7 @@ chrome.webRequest.onBeforeRequest.addListener(function(details) { return {cancel: true}; }, { - urls: ["*://*.theglobeandmail.com/*", "*://*.economist.com/*", "*://*.thestar.com/*", "*://*.newstatesman.com/*"], + urls: ["*://*.theglobeandmail.com/*", "*://*.economist.com/*", "*://*.thestar.com/*", "*://*.newstatesman.com/*", "*://*.bostonglobe.com/*"], types: ["script"] }, ["blocking"] diff --git a/options.js b/options.js index 54ca203..70b65c1 100644 --- a/options.js +++ b/options.js @@ -48,6 +48,7 @@ var defaultSites = { 'The Age': 'theage.com.au', 'The Australian': 'theaustralian.com.au', 'The Australian Financial Review': 'afr.com', + 'The Boston Globe (javascript disabled)': 'bostonglobe.com', 'The Business Journals': 'bizjournals.com', 'The Diplomat': 'thediplomat.com', 'The Globe and Mail (javascript disabled)': 'theglobeandmail.com',