From c2cbdeb93b91eba1d6a4430492ebbb6c11284474 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Tue, 15 Mar 2022 08:35:20 +0100 Subject: [PATCH] Fix Algemeen Dagblad (regional; refresh) --- changelog.txt | 1 + contentScript.js | 7 +++++++ manifest.json | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index eedf3c4..e11fef7 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Fix Algemeen Dagblad (regional; refresh) Fix Funke Mediengruppe (opt-in to custom sites for unlisted) * v2.6.0.0 (2022-03-13) diff --git a/contentScript.js b/contentScript.js index a9d2628..f55fe18 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1664,6 +1664,11 @@ else } else if (window.location.hostname.match(/\.(be|nl)$/)) {//belgium/netherlands if (matchDomain(['bd.nl', 'ed.nl', 'tubantia.nl', 'bndestem.nl', 'pzc.nl', 'destentor.nl', 'gelderlander.nl'])) { + let login = document.querySelector('article#PURCHASE_LOGIN_WALL'); + if (login) { + removeDOMElement(login); + window.location.reload(true); + } let paywall = document.querySelectorAll('.article__component--paywall-module-notification, .fjs-paywall-notification'); let modal_login = document.querySelector('.modal--login'); removeDOMElement(...paywall, modal_login); @@ -3654,6 +3659,8 @@ function replaceDomElementExt(url, proxy, base64, selector, text_fail = '', sele article.insertBefore(text_fail_div, article.firstChild); } } + }).catch(function (err) { + false; }); } diff --git a/manifest.json b/manifest.json index 06b3945..594a98f 100644 --- a/manifest.json +++ b/manifest.json @@ -637,5 +637,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.6.0.1" + "version": "2.6.0.2" }