diff --git a/ophirofox/content_scripts/challenges.css b/ophirofox/content_scripts/challenges.css new file mode 100644 index 0000000..648210b --- /dev/null +++ b/ophirofox/content_scripts/challenges.css @@ -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; +} \ No newline at end of file diff --git a/ophirofox/content_scripts/challenges.js b/ophirofox/content_scripts/challenges.js new file mode 100644 index 0000000..241d16c --- /dev/null +++ b/ophirofox/content_scripts/challenges.js @@ -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); \ No newline at end of file diff --git a/ophirofox/manifest.json b/ophirofox/manifest.json index 9892438..8b519ab 100644 --- a/ophirofox/manifest.json +++ b/ophirofox/manifest.json @@ -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": {