Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajout Challenges #226

Merged
merged 17 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading