Skip to content

Commit 4b5240b

Browse files
authored
Nouvelobs : Ajoute le support des articles offert avec la création d'un compte (#347)
1 parent ff0b045 commit 4b5240b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

ophirofox/content_scripts/lobs.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,16 @@ const isPremium = () => {
1111
return false;
1212
};
1313

14+
const isFreeOnAccountCreation = () => {
15+
const element = document.querySelector('div[class*="registerwall-wrapper"]');
16+
if (element) {
17+
return true;
18+
}
19+
return false;
20+
};
21+
1422
async function onLoad() {
15-
if (!isPremium()) return;
23+
if (!isPremium() && !isFreeOnAccountCreation()) return;
1624
document.querySelector("h1").after(await ophirofoxEuropresseLink(extractKeywords()));
1725
}
1826

0 commit comments

Comments
 (0)