Skip to content

Commit

Permalink
Ajout Challenges (#226)
Browse files Browse the repository at this point in the history
* Réparation bouton Le Point

* Ajout de Corse Matin, La Tribune, L'Opinion, Nice-Matin

* Rectification du formatage du code

* Ajout L'Orient-Le Jour

* Restylage bouton L'Est Républicain

* Réparation bouton Libération

* Restylage bouton libé

* Réparation bouton L'Express

* Libé

* Libé

* Libé

* Ajout Challenges
  • Loading branch information
fmoncomble authored May 22, 2024
1 parent 04f5d39 commit 1bfbf13
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ophirofox/content_scripts/challenges.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.ophirofox-europresse {
background-color: #fcc525;
font-family: "DIN",Helvetica,arial,sans-serif;
color: #101010 !important;
text-transform: uppercase;
font-size: 11px;
padding: 4px 6px 1px 6px;
display: inline-block;
}

.ophirofox-europresse:hover {
color: #a6a6a6 !important;
}
13 changes: 13 additions & 0 deletions ophirofox/content_scripts/challenges.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
console.log('Ophirofox loaded');

async function createLink() {
return await ophirofoxEuropresseLink();
}

async function onLoad() {
const statusElem = document.querySelector("span.article-abo-tag");
if (!statusElem) return;
statusElem.before(await createLink());
}

onLoad().catch(console.error);
12 changes: 12 additions & 0 deletions ophirofox/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,18 @@
"css": [
"content_scripts/hetlaatstenieuws.css"
]
},
{
"matches": [
"https://www.challenges.fr/*"
],
"js": [
"content_scripts/config.js",
"content_scripts/challenges.js"
],
"css": [
"content_scripts/challenges.css"
]
}
],
"browser_specific_settings": {
Expand Down

0 comments on commit 1bfbf13

Please sign in to comment.