Skip to content

Commit 8a0c532

Browse files
author
github-actions
committed
Release from Ophirofox v2.5.250312.1859
1 parent ad9676c commit 8a0c532

File tree

1 file changed

+65
-1
lines changed

1 file changed

+65
-1
lines changed

ophirofox.user.js

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ==UserScript==
2-
// @version 2.5.250310.1030
2+
// @version 2.5.250312.1859
33
// @author Write
44
// @name OphirofoxScript
55
// @grant GM.getValue
@@ -154,6 +154,7 @@
154154
// @include https://www.pressreader.com/*
155155
// @include https://www.usinenouvelle.com/*
156156
// @include https://elpais.com/*
157+
// @include https://acteurspublics.fr/*
157158
//
158159
// @run-at document-start
159160
//
@@ -3799,4 +3800,67 @@
37993800
}
38003801
`);
38013802
}
3803+
3804+
if ("https://acteurspublics.fr/*".includes(hostname)) {
3805+
3806+
window.addEventListener("load", function(event) {
3807+
function extractKeywords() {
3808+
return document.querySelector("h1").textContent;
3809+
}
3810+
3811+
async function createLink() {
3812+
const a = await ophirofoxEuropresseLink(extractKeywords());
3813+
a.classList.add("fig-premium-mark-article__text");
3814+
return a;
3815+
}
3816+
3817+
function findPremiumBanner() {
3818+
const elem = document.querySelector("#qiota-paywall");
3819+
return elem;
3820+
}
3821+
3822+
async function onLoad() {
3823+
const premiumBanner = findPremiumBanner();
3824+
if (!premiumBanner) return;
3825+
document.querySelector('.thematics-list__item').after(await createLink());
3826+
}
3827+
3828+
onLoad().catch(console.error);
3829+
});
3830+
3831+
pasteStyle(`
3832+
.ophirofox-europresse {
3833+
margin-left: 10px;
3834+
display: -ms-inline-flexbox;
3835+
display: -webkit-inline-flex;
3836+
display: inline-flex;
3837+
-ms-flex-align: center;
3838+
align-items: center;
3839+
-ms-flex-pack: center;
3840+
justify-content: center;
3841+
height: 30px;
3842+
padding: 0 20px;
3843+
border: 2px solid transparent;
3844+
border-radius: 100px;
3845+
font-size: 16px;
3846+
line-height: 13px;
3847+
font-weight: 500;
3848+
background: var(--color-primary-base);
3849+
border-color: var(--color-primary-base);
3850+
color: var(--color-white-base);
3851+
-webkit-transition: border-color var(--carousel-transition) ease, background var(--carousel-transition) ease;
3852+
transition: border-color var(--carousel-transition) ease, background var(--carousel-transition) ease;
3853+
background: var(--color-primary-base);
3854+
border-color: var(--color-primary-base);
3855+
color: var(--color-white-base);
3856+
-webkit-transition: border-color var(--carousel-transition) ease, background var(--carousel-transition) ease;
3857+
transition: border-color var(--carousel-transition) ease, background var(--carousel-transition) ease;
3858+
}
3859+
3860+
.ophirofox-europresse:hover {
3861+
border-color: var(--color-secondary-base);
3862+
background: var(--color-secondary-base);
3863+
}
3864+
`);
3865+
}
38023866
})();

0 commit comments

Comments
 (0)