Skip to content

Commit

Permalink
Release from Ophirofox v2.4.26326.30329
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Sep 2, 2024
1 parent 55673ee commit e71b36d
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion ophirofox.user.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ==UserScript==
// @version 2.4.26325.65219
// @version 2.4.26326.30329
// @author Write
// @name OphirofoxScript
// @grant GM.getValue
Expand Down Expand Up @@ -98,6 +98,7 @@
// @include https://www.lefigaro.fr/*
// @include https://leparticulier.lefigaro.fr/*
// @include https://www.monde-diplomatique.fr/*
// @include https://www.courrierdesmaires.fr/*
// @include https://www.la-croix.com/*
// @include https://www.courrierinternational.com/*
// @include https://www.lamontagne.fr/*
Expand Down Expand Up @@ -1146,6 +1147,40 @@
`);
}

if ("https://www.courrierdesmaires.fr/*".includes(hostname)) {

window.addEventListener("load", function(event) {
async function createLink() {
return await ophirofoxEuropresseLink();
}

async function onLoad() {
const statusElem = document.querySelector(".encartEssai");
const abo = document.querySelector(".etiquetteArt");
if (!statusElem || !abo) return;
statusElem.before(await createLink());
}

onLoad().catch(console.error);
});

pasteStyle(`
.ophirofox-europresse {
background-color: #fec22d;
padding: 1rem 1.5rem;
color: #262626;
text-align: center;
display: block;
margin-top: 1rem;
margin-bottom: 1rem;
}
.ophirofox-europresse:hover {
background-color: #e5ae29;
}
`);
}

if ("https://www.la-croix.com/*".includes(hostname)) {

window.addEventListener("load", function(event) {
Expand Down

0 comments on commit e71b36d

Please sign in to comment.