Skip to content

Commit e71b36d

Browse files
author
github-actions
committed
Release from Ophirofox v2.4.26326.30329
1 parent 55673ee commit e71b36d

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

ophirofox.user.js

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ==UserScript==
2-
// @version 2.4.26325.65219
2+
// @version 2.4.26326.30329
33
// @author Write
44
// @name OphirofoxScript
55
// @grant GM.getValue
@@ -98,6 +98,7 @@
9898
// @include https://www.lefigaro.fr/*
9999
// @include https://leparticulier.lefigaro.fr/*
100100
// @include https://www.monde-diplomatique.fr/*
101+
// @include https://www.courrierdesmaires.fr/*
101102
// @include https://www.la-croix.com/*
102103
// @include https://www.courrierinternational.com/*
103104
// @include https://www.lamontagne.fr/*
@@ -1146,6 +1147,40 @@
11461147
`);
11471148
}
11481149

1150+
if ("https://www.courrierdesmaires.fr/*".includes(hostname)) {
1151+
1152+
window.addEventListener("load", function(event) {
1153+
async function createLink() {
1154+
return await ophirofoxEuropresseLink();
1155+
}
1156+
1157+
async function onLoad() {
1158+
const statusElem = document.querySelector(".encartEssai");
1159+
const abo = document.querySelector(".etiquetteArt");
1160+
if (!statusElem || !abo) return;
1161+
statusElem.before(await createLink());
1162+
}
1163+
1164+
onLoad().catch(console.error);
1165+
});
1166+
1167+
pasteStyle(`
1168+
.ophirofox-europresse {
1169+
background-color: #fec22d;
1170+
padding: 1rem 1.5rem;
1171+
color: #262626;
1172+
text-align: center;
1173+
display: block;
1174+
margin-top: 1rem;
1175+
margin-bottom: 1rem;
1176+
}
1177+
1178+
.ophirofox-europresse:hover {
1179+
background-color: #e5ae29;
1180+
}
1181+
`);
1182+
}
1183+
11491184
if ("https://www.la-croix.com/*".includes(hostname)) {
11501185

11511186
window.addEventListener("load", function(event) {

0 commit comments

Comments
 (0)