From 208f0f301b59ace563534f270cbe8727801908d8 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Mon, 23 Mar 2020 17:50:50 +0100 Subject: [PATCH] Add The New Republic --- README.md | 3 ++- background.js | 2 ++ sites.js | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 41037fd..face261 100755 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ Visit the [Firefox repository](https://github.com/magnolia1234/bypass-paywalls-f [The Atlantic](https://www.theatlantic.com) - [The Christian Science Monitor](https://www.csmonitor.com) - [The Nation](https://www.thenation.com) - +[The New Republic](https://newrepublic.com) - [The New York Times](https://www.nytimes.com) - [The New Yorker](https://www.newyorker.com) - [The Washington Post](https://www.washingtonpost.com) - @@ -278,7 +279,7 @@ You can submit a request for a new website [here](https://github.com/magnolia123 ### Add custom site Add your own custom site (also for testing). -Check 'Custom'-link in popup-menu. +Check 'Options'-link in popup-menu and go to custom sites. By default sites' cookies are removed after page loads (to bypass article limit). Also you can enable Googlebot user-agent or disable Javascript for (sub)domain(s). diff --git a/background.js b/background.js index 49a9177..01d8911 100755 --- a/background.js +++ b/background.js @@ -41,6 +41,7 @@ var allow_cookies = [ 'mexiconewsdaily.com', 'modernhealthcare.com', 'nationalreview.com', +'newrepublic.com', 'ntnews.com.au', 'nytimes.com', 'parool.nl', @@ -160,6 +161,7 @@ var blockedRegexes = { 'modernhealthcare.com': /.+\.tinypass\.com\/.+/, 'nationalreview.com': /.+\.blueconic\.net\/.+/, 'newcastleherald.com.au': /.+cdn-au\.piano\.io\/api\/tinypass.+\.js/, +'newrepublic.com': /.+\.onecount\.net\/js\/.+/, 'nzherald.co.nz': /nzherald\.co\.nz\/.+\/headjs\/.+\.js/, 'portnews.com.au': /.+cdn-au\.piano\.io\/api\/tinypass.+\.js/, 'repubblica.it': /scripts\.repubblica\.it\/pw\/pw\.js.+/, diff --git a/sites.js b/sites.js index 6790f53..0c489be 100644 --- a/sites.js +++ b/sites.js @@ -140,6 +140,7 @@ var defaultSites = "The Mercury Tasmania": "themercury.com.au", "The Morning Call": "mcall.com", "The Nation": "thenation.com", + "The New Republic": "newrepublic.com", "The New Statesman": "newstatesman.com", "The New York Times": "nytimes.com", "The New Yorker": "newyorker.com",