diff --git a/ophirofox/content_scripts/la-provence.js b/ophirofox/content_scripts/la-provence.js index 63da85e0..16a99350 100644 --- a/ophirofox/content_scripts/la-provence.js +++ b/ophirofox/content_scripts/la-provence.js @@ -6,10 +6,10 @@ async function createLink() { function findPremiumBanner() { - const title = document.querySelector(".header-article-premium__stamp"); - if (!title) return null; - const elems = title.parentElement.querySelectorAll("span"); - return [...elems].find(d => d.textContent.includes("Article réservé aux abonnés")) + const array = document.querySelectorAll(".rev-margin-0.rev-text-xs-bold"); + const reserve = Array.from(array).find(p => p.textContent.includes("Article réservé aux abonnés")); + if (!reserve) return null; + return reserve } async function onLoad() {