From 129a8819130efc512d79c6ed04051f00cb40d64b Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sat, 5 Dec 2020 10:13:14 +0100 Subject: [PATCH] Add La Voix du Nord (France) --- README.md | 1 + background.js | 2 ++ changelog.txt | 1 + contentScript.js | 3 +-- manifest.json | 3 ++- sites.js | 1 + 6 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7781be6a..82ec024e 100644 --- a/README.md +++ b/README.md @@ -175,6 +175,7 @@ Alma Talent sites (grouped in options) like [L'Opinion](https://www.lopinion.fr) – [La Croix](https://www.la-croix.com) - [La Dépêche](https://www.ladepeche.fr) – +[La Voix du Nord](https://www.lavoixdunord.fr) - [Le Journal du Dimanche](https://lejdd.fr) – [Le Journal du Net](https://www.journaldunet.com) - [Le Parisien](https://www.leparisien.fr) - diff --git a/background.js b/background.js index 35e8e3f0..3dc8ef2a 100644 --- a/background.js +++ b/background.js @@ -65,6 +65,7 @@ var allow_cookies_default = [ 'knack.be', 'kurier.at', 'la-croix.com', + 'lavoixdunord.fr', 'lc.nl', 'lejdd.fr', 'lesechos.fr', @@ -149,6 +150,7 @@ var use_google_bot_default = [ 'handelsblatt.com', 'hs.fi', 'intelligentinvestor.com.au', + 'lavoixdunord.fr', 'lesoir.be', 'mexiconewsdaily.com', 'miamiherald.com', diff --git a/changelog.txt b/changelog.txt index fa11bb1b..484d3721 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Add El Comercio, Ideal & La Voz de Cadiz (Spain) Add Esprit (France) +Add La Voix du Nord (France) Add The Spectator USA Remove Aftonbladet.se (obsolete) Remove NK News (obsolete) diff --git a/contentScript.js b/contentScript.js index 776a5162..d89e90f7 100644 --- a/contentScript.js +++ b/contentScript.js @@ -758,11 +758,10 @@ else if (matchDomain("newyorker.com")) { let invisible_assets = document.querySelectorAll('.responsive-asset--invisible'); for (let asset_invisible of invisible_assets) asset_invisible.classList.remove('responsive-asset--invisible'); - let overlays = document.querySelectorAll('.aspect-ratio--overlay-container'); + let overlays = document.querySelectorAll('.aspect-ratio--overlay-container, .asset-embed__asset-container'); let noscript, html; let parser = new DOMParser(); for (let overlay of overlays) { - overlay.classList.remove('aspect-ratio--overlay-container'); noscript = overlay.querySelector('noscript'); if (noscript) { html = parser.parseFromString(noscript.innerHTML, 'text/html'); diff --git a/manifest.json b/manifest.json index ec83d6cc..5662fbbb 100644 --- a/manifest.json +++ b/manifest.json @@ -190,6 +190,7 @@ "*://*.latercera.com/*", "*://*.latimes.com/*", "*://*.laverdad.es/*", + "*://*.lavoixdunord.fr/*", "*://*.lavozdigital.es/*", "*://*.lc.nl/*", "*://*.lecho.be/*", @@ -370,5 +371,5 @@ "*://*.repstatic.it/*", "*://*.userzoom.com/*" ], - "version": "1.9.7.6" + "version": "1.9.7.7" } \ No newline at end of file diff --git a/sites.js b/sites.js index 9b79722d..7fa10add 100644 --- a/sites.js +++ b/sites.js @@ -102,6 +102,7 @@ var defaultSites = "La Segunda": "lasegunda.com", "La Stampa": "lastampa.it", "La Tercera": "latercera.com", + 'La Voix du Nord': 'lavoixdunord.fr', "Le Devoir": "ledevoir.com", "Le Journal du Dimanche": "lejdd.fr", "Le Journal du Net": "journaldunet.com",