Skip to content

Commit 630c8f2

Browse files
author
github-actions
committed
Release from Ophirofox v2.5.250628.2313
1 parent cff1f6f commit 630c8f2

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

ophirofox.user.js

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ==UserScript==
2-
// @version 2.5.250620.2136
2+
// @version 2.5.250628.2313
33
// @author Write
44
// @name OphirofoxScript
55
// @grant GM.getValue
@@ -163,6 +163,7 @@
163163
// @include https://www.journaldunet.com/*
164164
// @include https://www.science-et-vie.com/*
165165
// @include https://investir.lesechos.fr/*
166+
// @include https://www.jeuneafrique.com/*
166167
//
167168
// @run-at document-start
168169
//
@@ -4304,4 +4305,35 @@
43044305
}
43054306
`);
43064307
}
4308+
4309+
if (match(hostname, "https://www.jeuneafrique.com/*")) {
4310+
4311+
window.addEventListener("load", function(event) {
4312+
async function createLink() {
4313+
const a = await ophirofoxEuropresseLink();
4314+
a.className = "ophirofox-europresse";
4315+
return a;
4316+
}
4317+
4318+
async function onLoad() {
4319+
const header = document.querySelector(".article__header");
4320+
if (!header) return;
4321+
header.appendChild(await createLink());
4322+
}
4323+
4324+
onLoad().catch(console.error);
4325+
});
4326+
4327+
pasteStyle(`
4328+
.ophirofox-europresse {
4329+
display: inline-block;
4330+
padding: 0.25rem 1rem;
4331+
border-radius: 0.3rem;
4332+
background-color: #ffc700;
4333+
color: #000 !important;
4334+
text-align: center;
4335+
text-decoration: none;
4336+
}
4337+
`);
4338+
}
43074339
})();

0 commit comments

Comments
 (0)