From 5853aa6dc3d22d706acd197a59bd30bbba5378e7 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Mon, 1 Mar 2021 18:04:43 +0100 Subject: [PATCH] Add Atlantico (France) --- README.md | 1 + background.js | 154 ++++++++++++++++++++++++----------------------- changelog.txt | 1 + contentScript.js | 6 ++ manifest.json | 3 +- sites.js | 1 + 6 files changed, 89 insertions(+), 77 deletions(-) diff --git a/README.md b/README.md index 05ccfca..cc1154d 100644 --- a/README.md +++ b/README.md @@ -223,6 +223,7 @@ Alma Talent sites (grouped in options) like ##### France/Wallonia [Alternatives Economiques](https://www.alternatives-economiques.fr) - +[Atlantico](https://atlantico.fr) - [Challenges](https://www.challenges.fr) – [Charlie Hebdo](https://charliehebdo.fr) - [Esprit](https://esprit.presse.fr) - diff --git a/background.js b/background.js index 9857bbc..f1aab8a 100644 --- a/background.js +++ b/background.js @@ -34,6 +34,7 @@ const restrictions = { // allow_cookies are completed with domains in sites.js (default allow/remove_cookies) var allow_cookies_default = [ 'abc.es', + 'atlantico.fr', 'augsburger-allgemeine.de', 'belfasttelegraph.co.uk', 'berlingske.dk', @@ -228,122 +229,123 @@ var change_headers = use_google_bot.concat(use_bing_bot, use_facebook_referer, u // block paywall-scripts individually var blockedRegexes = { - 'adweek.com': /.+\.lightboxcdn\.com\/.+/, + 'adweek.com': /\.lightboxcdn\.com\//, 'augsburger-allgemeine.de':/(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(ad|subscriptions)-.+\.js)/, 'afr.com': /afr\.com\/assets\/vendorsReactRedux_client.+\.js/, - 'alternatives-economiques.fr': /.+\.poool\.fr\/.+/, - 'americanbanker.com': /\.tinypass\.com\/.+/, + 'alternatives-economiques.fr': /\.poool\.fr\//, + 'americanbanker.com': /\.tinypass\.com\//, + 'atlantico.fr': /\.poool\.fr\//, 'barrons.com': /(cdn\.cxense\.com\/.+|cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js)/, 'belfasttelegraph.co.uk': /(cdn\.flip-pay\.com\/clients\/inm\/flip-pay\.js|cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js)/, - 'bizjournals.com': /(assets\.bizjournals\.com\/static\/js\/app\/cxense\.js|cdn\.cxense\.com\/.+)/, + 'bizjournals.com': /(assets\.bizjournals\.com\/static\/js\/app\/cxense\.js|cdn\.cxense\.com\/)/, 'bloomberg.com': /(\.tinypass\.com\/|assets\.bwbx\.io\/s3\/fence\/)/, - 'bostonglobe.com': /meter\.bostonglobe\.com\/js\/.+/, - 'businessinsider.com': /\.tinypass\.com\/.+/, - 'challenges.fr': /.+\.poool\.fr\/.+/, - 'charliehebdo.fr': /.+\.poool\.fr\/.+/, - 'chicagobusiness.com': /\.tinypass\.com\/.+/, - 'chronicle.com': /(.+\.blueconic\.net\/.+|assets\.login\.chronicle\.com\/common\/che-auth0-user\.js)/, - 'clarin.com': /js\.matheranalytics\.com\/.+/, + 'bostonglobe.com': /meter\.bostonglobe\.com\/js\//, + 'businessinsider.com': /\.tinypass\.com\//, + 'challenges.fr': /\.poool\.fr\//, + 'charliehebdo.fr': /\.poool\.fr\//, + 'chicagobusiness.com': /\.tinypass\.com\//, + 'chronicle.com': /(\.blueconic\.net\/|assets\.login\.chronicle\.com\/common\/che-auth0-user\.js)/, + 'clarin.com': /js\.matheranalytics\.com\//, 'cmjornal.pt': /cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js/, 'corriere.it': /(\.tinypass\.com\/|\.rcsobjects\.it\/rcs_(cpmt|tracking-service)\/|\.corriereobjects\.it\/.+\/js\/(_paywall\.sjs|tracking\/)|\.userzoom\.com\/files\/js\/)/, - 'digiday.com': /\.tinypass\.com\/.+/, - 'dvhn.nl': /.+\.evolok\.net\/.+\/authorize\/.+/, - 'economist.com': /\.tinypass\.com\/.+/, - 'editorialedomani.it': /(.+\.editorialedomani\.it\/pelcro\.js|js\.pelcro\.com\/.+)/, + 'digiday.com': /\.tinypass\.com\//, + 'dvhn.nl': /\.evolok\.net\/.+\/authorize\//, + 'economist.com': /\.tinypass\.com\//, + 'editorialedomani.it': /(\.editorialedomani\.it\/pelcro\.js|js\.pelcro\.com\/)/, 'elcomercio.pe': /elcomercio\.pe\/pf\/dist\/template\/elcomercio-noticia.+\.js/, - 'elconfidencial.com': /\.tinypass\.com\/.+/, + 'elconfidencial.com': /\.tinypass\.com\//, 'elmercurio.com': /\.(elmercurio\.com|emol\.cl)\/(.+\/)?js\/(.+\/)?(modal|merPramV\d|PramModal\.min)\.js/, 'elmundo.es': /cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js/, 'elpais.com': /(\.epimg\.net\/js\/.+\/noticia\.min\.js|\.cdn\.arcpublishing\.com\/arc\/subs\/p\.min\.js|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|consent)-.+\.js)/, 'elperiodico.com': /cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js/, 'estadao.com.br': /acesso\.estadao\.com\.br\/paywall\/.+\/pw\.js/, - 'estrellavalpo.cl': /(.+\.mercuriovalpo\.cl\/impresa\/.+\/assets\/(vendor|\d)\.js|pram\.pasedigital\.cl\/API\/User\/Status\?)/, - 'exame.abril.com.br': /\.tinypass\.com\/.+/, + 'estrellavalpo.cl': /(\.mercuriovalpo\.cl\/impresa\/.+\/assets\/(vendor|\d)\.js|pram\.pasedigital\.cl\/API\/User\/Status\?)/, + 'exame.abril.com.br': /\.tinypass\.com\//, 'expansion.com': /cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js/, - 'financialpost.com': /\.tinypass\.com\/.+/, - 'folha.uol.com.br': /(.+\.folha\.uol\.com\.br\/paywall\/js\/.+\/publicidade\.ads\.js|paywall\.folha\.uol\.com\.br\/.+|js\.matheranalytics\.com\/.+)/, - 'foreignaffairs.com': /.+\.foreignaffairs\.com\/sites\/default\/files\/js\/js_[^y].+\.js/, - 'foreignpolicy.com': /\.tinypass\.com\/.+/, - 'fortune.com': /\.tinypass\.com\/.+/, + 'financialpost.com': /\.tinypass\.com\//, + 'folha.uol.com.br': /(\.folha\.uol\.com\.br\/paywall\/js\/.+\/publicidade\.ads\.js|paywall\.folha\.uol\.com\.br\/|js\.matheranalytics\.com\/)/, + 'foreignaffairs.com': /\.foreignaffairs\.com\/sites\/default\/files\/js\/js_[^y].+\.js/, + 'foreignpolicy.com': /\.tinypass\.com\//, + 'fortune.com': /\.tinypass\.com\//, 'freiepresse.de': /cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js/, - 'ftm.nl': /.+\.ftm\.nl\/js\/routing\?/, + 'ftm.nl': /\.ftm\.nl\/js\/routing\?/, 'gestion.pe': /gestion\.pe\/pf\/dist\/template\/gestion-noticia.+\.js/, - 'globes.co.il': /\.tinypass\.com\/.+/, - 'globo.com': /\.tinypass\.com\/.+/, + 'globes.co.il': /\.tinypass\.com\//, + 'globo.com': /\.tinypass\.com\//, 'griffithreview.com': /\.griffithreview\.com\/.+\/leaky-paywall\//, 'haaretz.co.il': /haaretz\.co\.il\/htz\/js\/inter\.js/, - 'haaretz.com': /haaretz\.com\/hdc\/web\/js\/minified\/header-scripts-int.js.+/, - 'hbr.org': /\.tinypass\.com\/.+/, - 'historyextra.com': /.+\.evolok\.net\/.+\/authorize\/.+/, + 'haaretz.com': /haaretz\.com\/hdc\/web\/js\/minified\/header-scripts-int.js/, + 'hbr.org': /\.tinypass\.com\//, + 'historyextra.com': /\.evolok\.net\/.+\/authorize\//, 'houstonchronicle.com': /\.blueconic\.net\//, - 'ilrestodelcarlino.it': /\.tinypass\.com\/.+/, + 'ilrestodelcarlino.it': /\.tinypass\.com\//, 'independent.ie': /(cdn\.flip-pay\.com\/clients\/inm\/flip-pay\.js|cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js)/, - 'inquirer.com': /\.tinypass\.com\/.+/, + 'inquirer.com': /\.tinypass\.com\//, 'irishtimes.com': /cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js/, 'japantimes.co.jp': /\.piano\.io\//, 'jpost.com': /\.jpost\.com\/bundles\/js_article\?/, - 'knack.be': /.+\.knack\.be\/js\/responsive\/rmgModal\.js/, - 'kurier.at': /\.tinypass\.com\/.+/, + 'knack.be': /\.knack\.be\/js\/responsive\/rmgModal\.js/, + 'kurier.at': /\.tinypass\.com\//, 'la-croix.com': /cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js/, 'lasegunda.com': /\.(lasegunda\.com|emol\.cl)\/(.+\/)?js\/(.+\/)?(modal|merPramV\d|PramModal\.min)\.js/, - 'latercera.com': /(.+\.latercera\.com\/arc\/subs\/p\.js|cdn\.cxense\.com\/.+)/, - 'latimes.com': /js\.matheranalytics\.com\/.+/, + 'latercera.com': /(\.latercera\.com\/arc\/subs\/p\.js|cdn\.cxense\.com\/)/, + 'latimes.com': /js\.matheranalytics\.com\//, 'lavanguardia.com': /(\.evolok\.net\/.+\/authorize\/|\.lavanguardia\.com\/(js\/)?godo-)/, - 'lc.nl': /.+\.evolok\.net\/.+\/authorize\/.+/, + 'lc.nl': /\.evolok\.net\/.+\/authorize\//, 'le1hebdo.fr': /(\.qiota\.com\/|\/le1hebdo\.fr\/assets\/front\/js\/qiota\.script\.js)/, - 'lejdd.fr': /.+\.poool\.fr\/.+/, - 'leparisien.fr': /\.tinypass\.com\/.+/, - 'lesechos.fr': /\.tinypass\.com\/.+/, - 'livemint.com': /(.+\.livemint\.com\/js\/localWorker\.js|analytics\.htmedia\.in\/analytics-js\/.+\.js)/, + 'lejdd.fr': /\.poool\.fr\//, + 'leparisien.fr': /\.tinypass\.com\//, + 'lesechos.fr': /\.tinypass\.com\//, + 'livemint.com': /(\.livemint\.com\/js\/localWorker\.js|analytics\.htmedia\.in\/analytics-js\/.+\.js)/, 'lne.es': /cdn\.ampproject\.org\/v\d\/amp-(access|consent)-.+\.js/, - 'lopinion.fr': /.+\.poool\.fr\/.+/, - 'lrb.co.uk': /\.tinypass\.com\/.+/, + 'lopinion.fr': /\.poool\.fr\//, + 'lrb.co.uk': /\.tinypass\.com\//, 'marketwatch.com': /(cdn\.cxense\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js)/, 'mercuriovalpo.cl': /(.+\.mercuriovalpo\.cl\/impresa\/.+\/assets\/(vendor|\d)\.js|pram\.pasedigital\.cl\/API\/User\/Status\?)/, - 'modernhealthcare.com': /\.tinypass\.com\/.+/, + 'modernhealthcare.com': /\.tinypass\.com\//, 'nation.africa': /(\.evolok\.net\/|nation\.africa\/resource\/themes\/nation-.+\/js\/.+\.js)/, - 'nationalgeographic.com': /.+\.blueconic\.net\/.+/, - 'nationalpost.com': /\.tinypass\.com\/.+/, - 'nationalreview.com': /(.+\.blueconic\.net\/.+|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js)/, - 'newrepublic.com': /.+\.onecount\.net\/js\/.+/, - 'newsweek.com': /js\.pelcro\.com\/.+/, - 'newyorker.com': /.+\.newyorker\.com\/verso\/static\/presenter-articles.+\.js/, + 'nationalgeographic.com': /\.blueconic\.net\//, + 'nationalpost.com': /\.tinypass\.com\//, + 'nationalreview.com': /(\.blueconic\.net\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js)/, + 'newrepublic.com': /\.onecount\.net\/js\//, + 'newsweek.com': /js\.pelcro\.com\//, + 'newyorker.com': /\.newyorker\.com\/verso\/static\/presenter-articles.+\.js/, 'noz.de': /cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|fx-flying-carpet)-.+\.js/, 'nytimes.com': /(meter-svc\.nytimes\.com\/meter\.js|mwcm\.nyt\.com\/.+\.js)/, - 'observador.pt': /\.tinypass\.com\/.+/, - 'parismatch.com': /.+\.poool\.fr\/.+/, - 'quotidiano.net': /\.tinypass\.com\/.+/, - 'rollingstone.com': /cdn\.cxense\.com\/.+/, - 'ruhrnachrichten.de': /\.tinypass\.com\/.+/, - 'saechsische.de': /\.tinypass\.com\/.+/, - 'science-et-vie.com': /.+\.qiota\.com\/.+/, - 'sciencesetavenir.fr': /.+\.poool\.fr\/.+/, - 'scmp.com': /\.tinypass\.com\/.+/, + 'observador.pt': /\.tinypass\.com\//, + 'parismatch.com': /\.poool\.fr\//, + 'quotidiano.net': /\.tinypass\.com\//, + 'rollingstone.com': /cdn\.cxense\.com\//, + 'ruhrnachrichten.de': /\.tinypass\.com\//, + 'saechsische.de': /\.tinypass\.com\//, + 'science-et-vie.com': /\.qiota\.com\//, + 'sciencesetavenir.fr': /\.poool\.fr\//, + 'scmp.com': /\.tinypass\.com\//, 'seekingalpha.com': /(\.tinypass\.com\/|cdn\.ampproject\.org(\/.+)?\/v\d\/amp-(access|ad|loader)-.+\.js)/, 'sfchronicle.com': /\.blueconic\.net\//, 'shz.de': /cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|fx-flying-carpet)-.+\.js/, 'si.com': /\.blueconic\.net\//, - 'slate.com': /(cdn\.cxense\.com\/.+|\.tinypass\.com\/.+)/, - 'sloanreview.mit.edu': /(\.tinypass\.com\/.+|.+\/sloanreview\.mit\.edu\/.+\/welcome-ad\.js)/, - 'spectator.co.uk': /\.tinypass\.com\/.+/, - 'spectator.com.au': /\.tinypass\.com\/.+/, - 'spectator.us': /(cdn\.cxense\.com\/.+|\.tinypass\.com\/.+)/, + 'slate.com': /(cdn\.cxense\.com\/|\.tinypass\.com\/)/, + 'sloanreview.mit.edu': /(\.tinypass\.com\/|\/sloanreview\.mit\.edu\/.+\/welcome-ad\.js)/, + 'spectator.co.uk': /\.tinypass\.com\//, + 'spectator.com.au': /\.tinypass\.com\//, + 'spectator.us': /(cdn\.cxense\.com\/|\.tinypass\.com\/.+)/, 'svz.de': /cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|fx-flying-carpet)-.+\.js/, - 'technologyreview.com': /.+\.blueconic\.net\/.+/, + 'technologyreview.com': /\.blueconic\.net\//, 'telegraph.co.uk': /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js|\.telegraph\.co\.uk\/.+\/piano.+\.js|assets\.adobedtm\.com\/.+\.js)/, 'theartnewspaper.com': /\.amazonaws.com\/production-website-scripts\/bouncer\.js/, - 'thedailybeast.com': /\.tinypass\.com\/.+/, + 'thedailybeast.com': /\.tinypass\.com\//, 'hilltimes.com': /\.hilltimes\.com\/.+\/js\/loadingoverlay\/loadingoverlay\.min\.js/, - 'thehindu.com': /(cdn\.cxense\.com\/.+|\.tinypass\.com\/.+)/, - 'thehindubusinessline.com': /(cdn\.cxense\.com\/.+|\.tinypass\.com\/.+)/, - 'thenation.com': /\.tinypass\.com\/.+/, + 'thehindu.com': /(cdn\.cxense\.com\/|\.tinypass\.com\/)/, + 'thehindubusinessline.com': /(cdn\.cxense\.com\/|\.tinypass\.com\/)/, + 'thenation.com': /\.tinypass\.com\//, 'time.com': /\/time\.com\/dist\/meter-wall-client-js\..+\.js/, 'timeshighereducation.com': /\.timeshighereducation\.com\/sites\/default\/files\/js\/js_bbCGL.+\.js/, - 'valeursactuelles.com': /.+\.qiota\.com\/.+/, - 'variety.com': /cdn\.cxense\.com\/.+/, + 'valeursactuelles.com': /\.qiota\.com\//, + 'variety.com': /cdn\.cxense\.com\//, 'venturebeat.com': /\.wallkit\.net\/js\//, - 'washingtonpost.com': /.+\.washingtonpost\.com\/.+\/pwapi-proxy\.min\.js/, - 'wsj.com': /(cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js|cdn\.cxense\.com\/.+)/ + 'washingtonpost.com': /\.washingtonpost\.com\/.+\/pwapi-proxy\.min\.js/, + 'wsj.com': /(cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js|cdn\.cxense\.com\/)/ }; // grouped domains in sites.js (for options) @@ -415,7 +417,7 @@ function add_grouped_sites(init_rules) { if (init_rules) { for (let domain of au_comm_media_domains) { allow_cookies.push(domain); - blockedRegexes[domain] = /.+cdn-au\.piano\.io\/api\/tinypass.+\.js/; + blockedRegexes[domain] = /cdn-au\.piano\.io\/api\/tinypass.+\.js/; } for (let domain of au_news_corp_domains) { allow_cookies.push(domain); @@ -432,7 +434,7 @@ function add_grouped_sites(init_rules) { } for (let domain of de_funke_media_domains) { allow_cookies.push(domain); - blockedRegexes[domain] = /(cdn\.cxense\.com\/.+|\.tinypass\.com\/.+)/; + blockedRegexes[domain] = /(cdn\.cxense\.com\/|\.tinypass\.com\/)/; } for (let domain of de_madsack_domains) { allow_cookies.push(domain); @@ -457,11 +459,11 @@ function add_grouped_sites(init_rules) { } for (let domain of fr_groupe_ebra_domains) { allow_cookies.push(domain); - blockedRegexes[domain] = /(.+\.poool\.fr\/.+|cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js)/; + blockedRegexes[domain] = /(\.poool\.fr\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js)/; } for (let domain of fr_groupe_la_depeche_domains) { allow_cookies.push(domain); - blockedRegexes[domain] = /(.+\.poool\.fr\/.+|cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent|subscriptions)-.+\.js)/;//|iframe + blockedRegexes[domain] = /(\.poool\.fr\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent|subscriptions)-.+\.js)/;//|iframe } for (let domain of it_ilmessaggero_domains) blockedRegexes[domain] = /utils\.cedsdigital\.it\/js\/PaywallMeter\.js/; diff --git a/changelog.txt b/changelog.txt index 3c2ea0f..9908529 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Add Atlantico (France) * v2.1.0.0 (2021-02-28) Add Die Rheinpfalz (Germany) diff --git a/contentScript.js b/contentScript.js index f3bd4b7..1cf84dc 100644 --- a/contentScript.js +++ b/contentScript.js @@ -2163,6 +2163,12 @@ else if (matchDomain('venturebeat.com')) { }, 500); // Delay (in milliseconds) } +else if (matchDomain('atlantico.fr')) { + let paywall = document.querySelector('div.dpslvp'); + if (paywall) + paywall.classList.remove('dpslvp'); +} + else if (!matchDomain(['belfasttelegraph.co.uk', 'independent.ie'])) csDone = true; diff --git a/manifest.json b/manifest.json index 2481cda..b3d393a 100644 --- a/manifest.json +++ b/manifest.json @@ -58,6 +58,7 @@ "*://*.arvopaperi.fi/*", "*://*.asia.nikkei.com/*", "*://*.atavist.com/*", + "*://*.atlantico.fr/*", "*://*.augsburger-allgemeine.de/*", "*://*.baltimoresun.com/*", "*://*.barrons.com/*", @@ -481,5 +482,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.1.0.0" + "version": "2.1.0.1" } \ No newline at end of file diff --git a/sites.js b/sites.js index 35fddd3..7ecc63a 100644 --- a/sites.js +++ b/sites.js @@ -9,6 +9,7 @@ var defaultSites = "American Affairs": "americanaffairsjournal.org", "American Banker": "americanbanker.com", "Atavist Magazine": "atavist.com", + "Atlantico.fr": "atlantico.fr", "Augsburger Allgemeine": "augsburger-allgemeine.de", "Australia News Corp": "###_au_news_corp", "Australian Community Media (daily)": "###_au_comm_media",