diff --git a/background.js b/background.js index d4d3867..1ebe132 100644 --- a/background.js +++ b/background.js @@ -2,7 +2,6 @@ var defaultSites = { 'The Age': 'theage.com.au', - 'The Australian': 'theaustralian.com.au', 'Baltimore Sun': 'baltimoresun.com', 'Barron\'s': 'barrons.com', 'Crain\'s Chicago Business': 'chicagobusiness.com', @@ -18,11 +17,13 @@ var defaultSites = { 'Inc.com': 'inc.com', 'Le Temps': 'letemps.ch', 'Los Angeles Times': 'latimes.com', + 'Medium': 'medium.com', 'Medscape': 'medscape.com', 'MIT Technology Review': 'technologyreview.com', 'Nikkei Asian Review': 'asia.nikkei.com', 'NRC': 'nrc.nl', - 'The Courier Mail': 'couriermail.com.au', + 'The Boston Globe': 'bostonglobe.com', + 'The Mercury News': 'mercurynews.com', 'The Morning Call': 'mcall.com', 'The Nation': 'thenation.com', 'The New York Times': 'nytimes.com', @@ -32,33 +33,34 @@ var defaultSites = { 'SunSentinel': 'sun-sentinel.com', 'The Seattle Times': 'seattletimes.com', 'The Sydney Morning Herald': 'smh.com.au', - 'The Telegraph': 'telegraph.co.uk', 'The Washington Post': 'washingtonpost.com', 'The Wall Street Journal': 'wsj.com' }; -var restrictions = { +const restrictions = { 'barrons.com': 'barrons.com/articles' } // Don't remove cookies before page load -var allow_cookies = [ -'theaustralian.com.au', +const allow_cookies = [ 'asia.nikkei.com', 'nytimes.com', 'wsj.com', -'couriermail.com.au', +'ft.com', 'letemps.ch', -'fd.nl' +'fd.nl', +'bostonglobe.com', +'mercurynews.com' ] // Removes cookies after page load -var remove_cookies = [ -'theaustralian.com.au', +const remove_cookies = [ 'asia.nikkei.com', -'couriermail.com.au', +'ft.com', 'letemps.ch', -'fd.nl' +'fd.nl', +'bostonglobe.com', +'mercurynews.com' ] function setDefaultOptions() { @@ -114,7 +116,6 @@ chrome.runtime.onInstalled.addListener(function (details) { chrome.webRequest.onBeforeSendHeaders.addListener(function(details) { - console.log("hello asdf"); if (blockedRegexes.some(function(regex) { return regex.test(details.url); })) { return { cancel: true }; } diff --git a/changelog.txt b/changelog.txt index 492865f..e172ed2 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,5 @@ Updates-- +2018-01-30 v1.0.7: Added Medium (medium.com), added The Boston Globe (bostonglobe.com), added The Mercury News (mercurynews.com), removed The Australian (theaustralian.com.au), removed The Courier Mail (couriermail.com.au), removed The Telegraph (telegraph.co.uk) 2017-09-14 v1.06: Added back Barron's, added Het Financieele Dagblad (fd.nl), added Le Temps (letemps.ch), added Haaretz (haaretz.co.il) 2017-07-15 v1.05: removed Barron's as the google redirect no longer works 2017-04-16: Added MIT Technology Review (technologyreview.com), NRC (nrc.nl), The Courier Mail (couriermail.com.au). @@ -10,7 +11,6 @@ Updates-- Bypass the following sites' paywalls: The Age (theage.com.au) -The Australian (theaustralian.com.au) Baltimore Sun (baltimoresun.com) Barron's (barrons.com) Crain's Chicago Business (chicagobusiness.com) @@ -26,11 +26,13 @@ Het Financieele Dagblad (fd.nl) Inc.com (inc.com) Le Temps (letemps.ch) Los Angeles Times (latimes.com) +Medium (medium.com) Medscape (medscape.com) MIT Technology Review (technologyreview.com) Nikkei Asian Review (asia.nikkei.com) NRC (nrc.nl) -The Courier Mail (couriermail.com.au) +The Boston Globe (bostonglobe.com) +The Mercury News (mercurynews.com) The Morning Call (mcall.com) The Nation (thenation.com) The New York Times (nytimes.com) @@ -40,6 +42,5 @@ Quora (quora.com) SunSentinel (sun-sentinel.com) The Seattle Times (seattletimes.com) The Sydney Morning Herald (smh.com.au) -The Telegraph (telegraph.co.uk) The Washington Post (washingtonpost.com) The Wall Street Journal (wsj.com) \ No newline at end of file diff --git a/manifest.json b/manifest.json index 04472a4..28d9d19 100644 --- a/manifest.json +++ b/manifest.json @@ -17,8 +17,6 @@ "chrome_style": true, "page": "options.html" }, - - "permissions": [ "cookies", - "*://*.baltimoresun.com/", "*://*.barrons.com/", "*://*.chicagobusiness.com/", "*://*.chicagotribune.com/", "*://*.dailypress.com/", "*://*.economist.com/", "*://*.ft.com/", "*://*.courant.com/", "*://*.hbr.org/", "*://*.inc.com/", "*://*.jacksonville.com/", "*://*.latimes.com/", "*://*.mcall.com/", "*://*.medscape.com/", "*://*.newyorker.com/", "*://*.orlandosentinel.com/", "*://*.quora.com/", "*://*.telegraph.co.uk/", "*://*.theage.com.au/", "*://*.thenation.com/", "*://*.tribdss.com/", "*://*.smh.com.au/", "*://*.sun-sentinel.com/", "*://*.washingtonpost.com/", "*://*.wsj.com/", "*://*.seattletimes.com/", "*://*.glassdoor.com/", "*://*.nytimes.com/", "*://.theaustralian.com.au/", "*://*.theaustralian.com.au/", "*://*.nikkei.com/", "*://*.technologyreview.com/", "*://*.nrc.nl/", "*://*.couriermail.com.au/", "*://.couriermail.com.au/", "*://*.fd.nl/", "*://*.letemps.ch/", "*://*.haaretz.co.il/", "storage", "webRequest", "webRequestBlocking"], - "version": "1.0.6" + "permissions": [ "cookies", "", "storage", "webRequest", "webRequestBlocking"], + "version": "1.0.7" } diff --git a/options.html b/options.html index 7a11219..486b25d 100644 --- a/options.html +++ b/options.html @@ -24,7 +24,9 @@

- + + + diff --git a/options.js b/options.js index 30f5301..c3adda5 100644 --- a/options.js +++ b/options.js @@ -1,6 +1,5 @@ var defaultSites = { 'The Age': 'theage.com.au', - 'The Australian': 'theaustralian.com.au', 'Baltimore Sun': 'baltimoresun.com', 'Barron\'s': 'barrons.com', 'Crain\'s Chicago Business': 'chicagobusiness.com', @@ -16,11 +15,13 @@ var defaultSites = { 'Inc.com': 'inc.com', 'Le Temps': 'letemps.ch', 'Los Angeles Times': 'latimes.com', + 'Medium': 'medium.com', 'Medscape': 'medscape.com', 'MIT Technology Review': 'technologyreview.com', 'Nikkei Asian Review': 'asia.nikkei.com', 'NRC': 'nrc.nl', - 'The Courier Mail': 'couriermail.com.au', + 'The Boston Globe': 'bostonglobe.com', + 'The Mercury News': 'mercurynews.com', 'The Morning Call': 'mcall.com', 'The Nation': 'thenation.com', 'The New York Times': 'nytimes.com', @@ -30,7 +31,6 @@ var defaultSites = { 'SunSentinel': 'sun-sentinel.com', 'The Seattle Times': 'seattletimes.com', 'The Sydney Morning Herald': 'smh.com.au', - 'The Telegraph': 'telegraph.co.uk', 'The Washington Post': 'washingtonpost.com', 'The Wall Street Journal': 'wsj.com' }; diff --git a/popup.html b/popup.html index f6e5d81..39a7147 100644 --- a/popup.html +++ b/popup.html @@ -1,6 +1,7 @@ -
Bypass Paywalls by Adam
+
Bypass Paywalls v1.0.7 by Adam +
Options