From 0240d2b0bf39f7011f0d9354f583fc4dba1fc900 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sun, 27 Aug 2023 08:04:44 +0200 Subject: [PATCH] Fix Financial Times (refresh) Fix Nikkei Asian Review (refresh) --- changelog.txt | 2 ++ contentScript.js | 16 +++++++++++----- custom/manifest.json | 2 +- manifest.json | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/changelog.txt b/changelog.txt index 33518518..4ad23f29 100644 --- a/changelog.txt +++ b/changelog.txt @@ -7,8 +7,10 @@ Add Bridge Tower Media (opt-in to custom sites) Add Fast Company Add LeTemps.ch Remove DN.no (fix obsolete) +Fix Financial Times (refresh) Fix Media Group Westfalen (identify sites) Fix Mediahuis Noord (json) +Fix Nikkei Asian Review (refresh) Fix WSJ (amp 404 & restore option to disable Googlebot) * v3.3.0.0 (2023-08-20) diff --git a/contentScript.js b/contentScript.js index 8635d728..b443aa06 100644 --- a/contentScript.js +++ b/contentScript.js @@ -2798,12 +2798,13 @@ else if (matchDomain('citywire.com')) { } else if (matchDomain('ft.com')) { - if (window.location.hostname.startsWith('amp.')) { - amp_unhide_subscr_section('.ad-container, amp-ad'); - } else { - let banners = document.querySelectorAll('.o-cookie-message, .js-article-ribbon, .o-ads, .o-banner'); - removeDOMElement(...banners); + let paywall = document.querySelector('div.js-primary-offers-container'); + if (paywall) { + removeDOMElement(paywall); + refreshCurrentTab(); } + let banners = document.querySelectorAll('.o-cookie-message, .js-article-ribbon, .o-ads, .o-banner'); + removeDOMElement(...banners); } else if (matchDomain('independent.co.uk')) { @@ -3325,6 +3326,11 @@ else if (matchDomain('artnet.com')) { } else if (matchDomain('asia.nikkei.com')) { + let paywall = document.querySelector('div.tp-container-inner'); + if (paywall) { + removeDOMElement(paywall); + refreshCurrentTab(); + } let popup = document.querySelector('#pianoj_ribbon'); removeDOMElement(popup); } diff --git a/custom/manifest.json b/custom/manifest.json index 85458df5..691fd62e 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.3.0.7" + "version": "3.3.0.8" } diff --git a/manifest.json b/manifest.json index 47b7c4f7..d19e3ce1 100644 --- a/manifest.json +++ b/manifest.json @@ -791,5 +791,5 @@ "*://*.wyleex.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.3.0.7" + "version": "3.3.0.8" }