From dcb86b90ea86a42f14cf5c9282e9f5fd2d8881cc Mon Sep 17 00:00:00 2001 From: magnolia1234 <54500520+magnolia1234@users.noreply.github.com> Date: Wed, 13 Nov 2019 13:12:24 +0100 Subject: [PATCH] Fix Telegraaf.nl (timing issue) Fix for persistent refreshing at paywall-banner. --- contentScript.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/contentScript.js b/contentScript.js index 89526db..556ffa1 100644 --- a/contentScript.js +++ b/contentScript.js @@ -120,10 +120,12 @@ if (window.location.href.indexOf("bloomberg.com") !== -1) { } if (window.location.href.indexOf('telegraaf.nl') !== -1) { - const paywall = document.getElementById('TEMPRORARY_METERING_ID'); - if (paywall) { - window.location.reload(1); - } + setTimeout(function () { + const paywall = document.getElementById('TEMPRORARY_METERING_ID'); + if (paywall) { + window.location.reload(true); + } + }, 500); // Delay (in milliseconds) } if (window.location.href.indexOf('ed.nl') !== -1) {