From 4087e513f92900801486c05960eedeb88334a9db Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Thu, 8 Sep 2022 16:31:08 +0200 Subject: [PATCH] Fix Faz.net (Zeitung timing) --- changelog.txt | 1 + contentScript.js | 7 +++---- manifest.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/changelog.txt b/changelog.txt index fd929dc..e7d3505 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Add PEI Media sites (opt-in to custom sites) +Fix Faz.net (Zeitung timing) Fix TownNews sites (css) * v2.8.3.0 (2022-09-04) diff --git a/contentScript.js b/contentScript.js index 7b13a2b..1c3c69c 100644 --- a/contentScript.js +++ b/contentScript.js @@ -524,11 +524,10 @@ else if (matchDomain('faz.net')) { if (matchDomain('zeitung.faz.net')) { let paywall_z = document.querySelector('.c-red-carpet'); if (paywall_z) { - let og_url = document.querySelector('meta[property="og:url"]'); + removeDOMElement(paywall_z); + let og_url = document.querySelector('meta[property="og:url"][content]'); if (og_url) - window.setTimeout(function () { - window.location.href = og_url.content; - }, 500); + window.location.href = og_url.content; } let sticky_advt = document.querySelector('.sticky-advt'); removeDOMElement(sticky_advt); diff --git a/manifest.json b/manifest.json index 14abb50..105e4bf 100644 --- a/manifest.json +++ b/manifest.json @@ -702,5 +702,5 @@ "*://gcm.omerlocdn.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.8.3.1" + "version": "2.8.3.2" }