From cc7097a8a163b918d17bf3908331c0a82ea9fdb8 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Wed, 25 Sep 2019 15:31:37 +0200 Subject: [PATCH] Dutch papers/magazines Dutch papers: ad.nl, ed.nl (cookie fix), parool.nl, trouw.nl, volkskrant.nl Dutch magazines: groene.nl, vn.nl Removed leftover cookie setting for fd.nl (hard paywall) --- README.md | 7 ++++++- background.js | 16 ++++++++++++---- options.js | 8 +++++++- 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 7611760..4271c98 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ ### Bypass the following sites' paywalls with this extension +[Algemeen Dagblad](https://www.ad.nl)\ [American Banker](https://americanbanker.com)\ [Baltimore Sun](https://www.baltimoresun.com)\ [Barron's](https://www.barrons.com)\ @@ -25,6 +26,8 @@ [Crain's Chicago Business](https://www.chicagobusiness.com)\ [Dagens Nyheter](https://dn.se)\ [Daily Press](https://www.dailypress.com)\ +[De Groene Amsterdammer](https://www.groene.nl)\ +[De Volkskrant](https://www.volkskrant.nl)\ [DeMorgen](https://demorgen.be)\ [Denver Post](https://www.denverpost.com)\ [Dynamed Plus](https://dynamed.com)\ @@ -55,7 +58,8 @@ [New Zealand Herald](https://www.nzherald.co.nz)\ [Newsrep](https://thenewsrep.com)\ [Nikkei Asian Review](https://asia.nikkei.com)\ -[Orlando Sentinel](https://www.orlandosentinel.com)\ +[Orlando Sentinel](https://www.orlandosentinel.com +[Parool](https://www.parool.nl)\ [Quartz](https://qz.com)\ [Quora](https://www.quora.com)\ [San Francisco Chronicle](https://sfchronicle.com)\ @@ -90,6 +94,7 @@ [The Wall Street Journal](https://www.wsj.com)\ [The Washington Post](https://www.washingtonpost.com)\ [TheMarker](https://www.themarker.com)\ +[Trouw](https://www.trouw.nl)\ [Vanity Fair](https://www.vanityfair.com)\ [Winston-Salem Journal](https://journalnow.com)\ [Wired](https://www.wired.com)\ diff --git a/background.js b/background.js index 83663d6..f053b61 100644 --- a/background.js +++ b/background.js @@ -1,6 +1,7 @@ 'use strict'; var defaultSites = { + 'Algemeen Dagblad': 'ad.nl', 'American Banker': 'americanbanker.com', 'Baltimore Sun': 'baltimoresun.com', 'Barron\'s': 'barrons.com', @@ -11,6 +12,7 @@ var defaultSites = { 'Corriere Della Sera': 'corriere.it', 'Daily Press': 'dailypress.com', 'Dagens Nyheter': 'dn.se', + 'De Groene Amsterdammer': 'groene.nl', 'DeMorgen': 'demorgen.be', 'Denver Post': 'denverpost.com', 'Dynamed Plus': 'dynamed.com', @@ -42,7 +44,7 @@ var defaultSites = { 'Nikkei Asian Review': 'asia.nikkei.com', 'NRC': 'nrc.nl', 'New Zealand Herald': 'nzherald.co.nz', - 'OrlandoSentinel': 'orlandosentinel.com', + 'OrlandoSentinel': 'orlandosentinel.com', 'Quartz': 'qz.com', 'Quora': 'quora.com', 'San Francisco Chronicle': 'sfchronicle.com', @@ -92,7 +94,12 @@ const allow_cookies = [ 'nytimes.com', 'wsj.com', 'ft.com', -'fd.nl', +'ad.nl', +'ed.nl', +'parool.nl', +'trouw.nl', +'vn.nl', +'volkskrant.nl', 'mercurynews.com', 'theage.com.au', 'economist.com', @@ -115,9 +122,10 @@ const allow_cookies = [ // Removes cookies after page load const remove_cookies = [ 'asia.nikkei.com', +'ad.nl', 'ed.nl', +'vn.nl', 'ft.com', -'fd.nl', 'mercurynews.com', 'theage.com.au', 'economist.com', @@ -245,7 +253,7 @@ chrome.webRequest.onBeforeRequest.addListener(function(details) { return {cancel: true}; }, { - urls: ["*://*.thestar.com/*", "*://*.economist.com/*", "*://*.theglobeandmail.com/*", "*://*.afr.com/*", "*://*.bizjournals.com/*", "*://*.businessinsider.com/*", "*://*.bostonglobe.com/*"], + urls: ["*://*.thestar.com/*", "*://*.economist.com/*", "*://*.theglobeandmail.com/*", "*://*.afr.com/*", "*://*.bizjournals.com/*", "*://*.businessinsider.com/*", "*://*.bostonglobe.com/*", "*://*.trouw.nl/*", "*://*.parool.nl/*", "*://*.volkskrant.nl/*"], types: ["script"] }, ["blocking"] diff --git a/options.js b/options.js index ec35d30..6c016a0 100644 --- a/options.js +++ b/options.js @@ -1,5 +1,6 @@ var defaultSites = { - 'American Banker': 'americanbanker.com', + 'Algemeen Dagblad': 'ad.nl', + 'American Banker': 'americanbanker.com', 'Baltimore Sun': 'baltimoresun.com', 'Barron\'s': 'barrons.com', 'Bloomberg': 'bloomberg.com', @@ -9,6 +10,8 @@ var defaultSites = { 'Corriere Della Sera': 'corriere.it', 'Daily Press': 'dailypress.com', 'Dagens Nyheter': 'dn.se', + 'De Groene Amsterdammer': 'groene.nl', + 'De Volkskrant (javascript disabled)': 'volkskrant.nl', 'DeMorgen': 'demorgen.be', 'Denver Post': 'denverpost.com', 'Dynamed Plus': 'dynamed.com', @@ -41,6 +44,7 @@ var defaultSites = { 'NRC': 'nrc.nl', 'New Zealand Herald': 'nzherald.co.nz', 'OrlandoSentinel': 'orlandosentinel.com', + 'Parool (javascript disabled)': 'parool.nl', 'Quartz': 'qz.com', 'Quora': 'quora.com', 'San Francisco Chronicle': 'sfchronicle.com', @@ -74,8 +78,10 @@ var defaultSites = { 'The Toronto Star (javascript disabled)': 'thestar.com', 'The Washington Post': 'washingtonpost.com', 'The Wall Street Journal': 'wsj.com', + 'Trouw (javascript disabled)': 'trouw.nl', 'Winston-Salem Journal': 'journalnow.com', 'Vanity Fair': 'vanityfair.com', + 'Vrij Nederland': 'vn.nl', 'Wired': 'wired.com', 'Zeit Online': 'zeit.de' };