From 8d0a4588ee6b75d1f2623c47e764933067ba3d9f Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Wed, 29 Sep 2021 20:43:21 +0200 Subject: [PATCH] Fix Medium (cookies) --- background.js | 2 +- changelog.txt | 1 + contentScript.js | 5 +++++ manifest.json | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/background.js b/background.js index a610415..5a68a41 100644 --- a/background.js +++ b/background.js @@ -204,7 +204,7 @@ var cookies_select_domains = Object.keys(remove_cookies_select_hold).concat(Obje // Removes cookies after page load // remove_cookies are completed with domains of custom sites (default allow/remove_cookies) -var remove_cookies_default = ['scientificamerican.com']; +var remove_cookies_default = ['medium.com', 'scientificamerican.com']; var remove_cookies = remove_cookies_default.concat(cookies_select_domains); allow_cookies = allow_cookies.concat(cookies_select_domains); diff --git a/changelog.txt b/changelog.txt index b3e414d..6f77898 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,7 @@ Post-release Remove Gazet van Antwerpen (obsolete) Fix El Periodico de Catalunya (amp) Fix Foreign Affairs (timing) +Fix Medium (cookies) Fix Telerama.fr (mobile) Fix VeloNews diff --git a/contentScript.js b/contentScript.js index 13ec46a..73d680c 100644 --- a/contentScript.js +++ b/contentScript.js @@ -2189,6 +2189,11 @@ else if (matchDomain('newstatesman.com')) { removeDOMElement(tns_modal_wrapper); } +else if (matchDomain('newrepublic.com')) { + let pw_opups = document.querySelector('div#pwPopups'); + removeDOMElement(pw_opups); +} + else if (matchDomain('newyorker.com')) { let paywall_bar = document.querySelector('.paywall-bar'); removeDOMElement(paywall_bar); diff --git a/manifest.json b/manifest.json index ae41663..cab968c 100644 --- a/manifest.json +++ b/manifest.json @@ -560,5 +560,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.3.7.2" + "version": "2.3.7.3" } \ No newline at end of file