From e03cd29be86bb3738c6f2603035849096e842420 Mon Sep 17 00:00:00 2001 From: Phil Price Date: Tue, 29 Oct 2019 10:25:53 +1100 Subject: [PATCH 1/3] Add support for themercury.com.au --- .gitignore | 1 + README.md | 1 + background.js | 3 +++ manifest.json | 1 + options.js | 1 + 5 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 44ce34d..5a57038 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ web-ext-artifacts +/.vs diff --git a/README.md b/README.md index 1f1eb7a..7b71072 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,7 @@ [The Atlantic](https://www.theatlantic.com)\ [The Australian](https://www.theaustralian.com.au)\ [The Australian Financial Review](https://www.afr.com)\ +[The Mercury Tasmania](https://www.themercury.com.au)\ [The Boston Globe](https://www.bostonglobe.com)\ [The Business Journals](https://www.bizjournals.com)\ [The Diplomat](https://www.thediplomat.com)\ diff --git a/background.js b/background.js index bcb58a8..b378e7c 100644 --- a/background.js +++ b/background.js @@ -65,6 +65,7 @@ var defaultSites = { 'The Herald': 'theherald.com.au', 'The Japan Times': 'japantimes.co.jp', 'TheMarker': 'themarker.com', + 'The Mercury Tasmania': 'themercury.com.au', 'The Mercury News': 'mercurynews.com', 'The Morning Call': 'mcall.com', 'The Nation': 'thenation.com', @@ -117,6 +118,7 @@ const allow_cookies = [ 'telegraaf.nl', 'theadvocate.com.au', 'theaustralian.com.au', +'themercury.com.au', 'thestar.com', 'towardsdatascience.com', 'trouw.nl', @@ -174,6 +176,7 @@ const use_google_bot = [ 'nytimes.com', 'telegraph.co.uk', 'theaustralian.com.au', +'themercury.com.au', 'thetimes.co.uk', 'wsj.com', ] diff --git a/manifest.json b/manifest.json index 052c628..06703d5 100644 --- a/manifest.json +++ b/manifest.json @@ -103,6 +103,7 @@ "*://*.theadvocate.com.au/*", "*://*.theage.com.au/*", "*://*.theaustralian.com.au/*", + "*://*.themercury.com.au/*", "*://*.afr.com/*", "*://*.bostonglobe.com/*", "*://*.bizjournals.com/*", diff --git a/options.js b/options.js index 19a0d34..59609e5 100644 --- a/options.js +++ b/options.js @@ -56,6 +56,7 @@ var defaultSites = { 'The Atlantic': 'theatlantic.com', 'The Australian': 'theaustralian.com.au', 'The Australian Financial Review (javascript disabled)': 'afr.com', + 'The Mercury Tasmania': 'themercury.com.au', 'The Boston Globe (javascript disabled)': 'bostonglobe.com', 'The Business Journals': 'bizjournals.com', 'The Diplomat': 'thediplomat.com', From ccba868ac26a0cda7ef084e1588e30ee7f757aa4 Mon Sep 17 00:00:00 2001 From: Phil Price Date: Fri, 1 Nov 2019 12:31:54 +1100 Subject: [PATCH 2/3] Fixed ordering, reverted .gitignore --- .gitignore | 1 - README.md | 2 +- options.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5a57038..44ce34d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ web-ext-artifacts -/.vs diff --git a/README.md b/README.md index 7b71072..fca913d 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,6 @@ [The Atlantic](https://www.theatlantic.com)\ [The Australian](https://www.theaustralian.com.au)\ [The Australian Financial Review](https://www.afr.com)\ -[The Mercury Tasmania](https://www.themercury.com.au)\ [The Boston Globe](https://www.bostonglobe.com)\ [The Business Journals](https://www.bizjournals.com)\ [The Diplomat](https://www.thediplomat.com)\ @@ -70,6 +69,7 @@ [The Japan Times](https://www.japantimes.co.jp)\ [TheMarker](https://www.themarker.com)\ [The Mercury News](https://www.mercurynews.com)\ +[The Mercury Tasmania](https://www.themercury.com.au)\ [The Morning Call](https://www.mcall.com)\ [The Nation](https://www.thenation.com)\ [The New York Times](https://www.nytimes.com)\ diff --git a/options.js b/options.js index 59609e5..5fd4362 100644 --- a/options.js +++ b/options.js @@ -56,7 +56,6 @@ var defaultSites = { 'The Atlantic': 'theatlantic.com', 'The Australian': 'theaustralian.com.au', 'The Australian Financial Review (javascript disabled)': 'afr.com', - 'The Mercury Tasmania': 'themercury.com.au', 'The Boston Globe (javascript disabled)': 'bostonglobe.com', 'The Business Journals': 'bizjournals.com', 'The Diplomat': 'thediplomat.com', @@ -65,6 +64,7 @@ var defaultSites = { 'The Japan Times': 'japantimes.co.jp', 'TheMarker': 'themarker.com', 'The Mercury News': 'mercurynews.com', + 'The Mercury Tasmania': 'themercury.com.au', 'The Morning Call': 'mcall.com', 'The Nation': 'thenation.com', 'The New York Times': 'nytimes.com', From 878233292cc34fad58d39d1986c4528fbd22426d Mon Sep 17 00:00:00 2001 From: Ohad Date: Thu, 21 Nov 2019 23:22:09 +0200 Subject: [PATCH 3/3] use googlebot user agent for haaretz.co.il; it stopped bypassing with referrer --- background.js | 3 ++- manifest.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/background.js b/background.js index c747260..beb0495 100644 --- a/background.js +++ b/background.js @@ -191,7 +191,8 @@ const use_google_bot = [ 'telegraph.co.uk', 'theaustralian.com.au', 'thetimes.co.uk', -'wsj.com', +'wsj.com', +'haaretz.co.il', ] function setDefaultOptions() { diff --git a/manifest.json b/manifest.json index 6ab2933..d541c12 100644 --- a/manifest.json +++ b/manifest.json @@ -144,5 +144,5 @@ "*://*.scientificamerican.com/*", "*://*.thehindu.com/*" ], - "version": "1.6.0" + "version": "1.6.1" }