Skip to content

Commit 61f0f00

Browse files
author
github-actions
committed
Release from Ophirofox v2.4.26327.43782
1 parent e78d22c commit 61f0f00

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ophirofox.user.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ==UserScript==
2-
// @version 2.4.26326.30329
2+
// @version 2.4.26327.43782
33
// @author Write
44
// @name OphirofoxScript
55
// @grant GM.getValue
@@ -1703,10 +1703,10 @@
17031703

17041704

17051705
function findPremiumBanner() {
1706-
const title = document.querySelector(".header-article-premium__stamp");
1707-
if (!title) return null;
1708-
const elems = title.parentElement.querySelectorAll("span");
1709-
return [...elems].find(d => d.textContent.includes("Article réservé aux abonnés"))
1706+
const array = document.querySelectorAll(".rev-margin-0.rev-text-xs-bold");
1707+
const reserve = Array.from(array).find(p => p.textContent.includes("Article réservé aux abonnés"));
1708+
if (!reserve) return null;
1709+
return reserve
17101710
}
17111711

17121712
async function onLoad() {

0 commit comments

Comments
 (0)