Skip to content

Commit 1a63e49

Browse files
ajout journal jeuneAfrique (#355)
1 parent a2bdd40 commit 1a63e49

File tree

4 files changed

+35
-0
lines changed

4 files changed

+35
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Voici la liste triée par ordre alphabétique :
6969
- [Gazet van Antwerpen (Belgique - néerlandophone)](https://www.gva.be/)
7070
- [Het Laatste Nieuws (Belgique - néerlandophone)](https://www.hln.be/)
7171
- [Het Nieuwsblad (Belgique - néerlandophone)](https://www.nieuwsblad.be/)
72+
- [Jeune Afrique](https://www.jeuneafrique.com/)
7273
- [Knack (Belgique - néerlandophone)](https://www.knack.be/)
7374
- [L'Avenir (Belgique)](https://www.lavenir.net/)
7475
- [L'Orient-Le Jour (Liban)](https://www.lorientlejour.com/)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.ophirofox-europresse {
2+
display: inline-block;
3+
padding: 0.25rem 1rem;
4+
border-radius: 0.3rem;
5+
background-color: #ffc700;
6+
color: #000 !important;
7+
text-align: center;
8+
text-decoration: none;
9+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
async function createLink() {
2+
const a = await ophirofoxEuropresseLink();
3+
a.className = "ophirofox-europresse";
4+
return a;
5+
}
6+
7+
async function onLoad() {
8+
const header = document.querySelector(".article__header");
9+
if (!header) return;
10+
header.appendChild(await createLink());
11+
}
12+
13+
onLoad().catch(console.error);

ophirofox/manifest.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,18 @@
800800
"css":[
801801
"content_scripts/investir-lesechos.css"
802802
]
803+
},
804+
{
805+
"matches": [
806+
"https://www.jeuneafrique.com/*"
807+
],
808+
"js": [
809+
"content_scripts/config.js",
810+
"content_scripts/jeuneAfrique.js"
811+
],
812+
"css": [
813+
"content_scripts/jeuneAfrique.css"
814+
]
803815
}
804816
],
805817
"browser_specific_settings": {

0 commit comments

Comments
 (0)