Skip to content

Commit e91e3d7

Browse files
author
github-actions
committed
Release from Ophirofox v2.4.26189.65394
1 parent 95de18e commit e91e3d7

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

ophirofox.user.js

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ==UserScript==
2-
// @version 2.4.26183.47052
2+
// @version 2.4.26189.65394
33
// @author Write
44
// @name OphirofoxScript
55
// @grant GM.getValue
@@ -137,6 +137,7 @@
137137
// @include https://www.gva.be/*
138138
// @include https://www.nieuwsblad.be/*
139139
// @include https://www.hln.be/*
140+
// @include https://www.challenges.fr/*
140141
//
141142
// @run-at document-start
142143
//
@@ -3077,4 +3078,39 @@
30773078
}
30783079
`);
30793080
}
3081+
3082+
if ("https://www.challenges.fr/*".includes(hostname)) {
3083+
3084+
window.addEventListener("load", function(event) {
3085+
console.log('Ophirofox loaded');
3086+
3087+
async function createLink() {
3088+
return await ophirofoxEuropresseLink();
3089+
}
3090+
3091+
async function onLoad() {
3092+
const statusElem = document.querySelector("span.article-abo-tag");
3093+
if (!statusElem) return;
3094+
statusElem.before(await createLink());
3095+
}
3096+
3097+
onLoad().catch(console.error);
3098+
});
3099+
3100+
pasteStyle(`
3101+
.ophirofox-europresse {
3102+
background-color: #fcc525;
3103+
font-family: "DIN",Helvetica,arial,sans-serif;
3104+
color: #101010 !important;
3105+
text-transform: uppercase;
3106+
font-size: 11px;
3107+
padding: 4px 6px 1px 6px;
3108+
display: inline-block;
3109+
}
3110+
3111+
.ophirofox-europresse:hover {
3112+
color: #a6a6a6 !important;
3113+
}
3114+
`);
3115+
}
30803116
})();

0 commit comments

Comments
 (0)