From e943d405973ea87096ff87c764a9d9570a5e02e2 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sun, 22 Aug 2021 17:42:56 +0200 Subject: [PATCH] Fix Medium (timing) --- changelog.txt | 1 + contentScript.js | 4 +++- manifest.json | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index 0664fd6..8593ae2 100644 --- a/changelog.txt +++ b/changelog.txt @@ -7,6 +7,7 @@ Add MediaNews Group (local USA) Add The Intercept Remove Slader (obsolete) Fix group Mediahuis Nederland Regional +Fix Medium (timing) Fix The Australian Fix The Daily Beast (proper/images) diff --git a/contentScript.js b/contentScript.js index c9a5bbd..652a097 100644 --- a/contentScript.js +++ b/contentScript.js @@ -72,8 +72,10 @@ ext_api.runtime.sendMessage({request: 'optin'}); if (matchDomain(['medium.com', 'towardsdatascience.com']) || document.querySelector('script[src^="https://cdn-client.medium.com/"]')) { let paywall = document.querySelector('div#paywall-background-color'); removeDOMElement(paywall); - if (paywall) + if (paywall) { ext_api.runtime.sendMessage({request: 'refreshCurrentTab'}); + csDoneOnce = true; + } window.setTimeout(function () { let meter = document.querySelector('[id*="highlight-meter-"]'); if (meter) diff --git a/manifest.json b/manifest.json index 485fd51..a48da7c 100644 --- a/manifest.json +++ b/manifest.json @@ -553,5 +553,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.3.3.7" + "version": "2.3.3.8" } \ No newline at end of file