Fix Telegraaf.nl (timing issue)

Fix for persistent refreshing at paywall-banner.
master
magnolia1234 2019-11-13 13:12:24 +01:00 committed by GitHub
parent 191377482d
commit dcb86b90ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -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) {