11// ==UserScript==
2- // @version 2.5.250522.1547
2+ // @version 2.5.250523.1515
33// @author Write
44// @name OphirofoxScript
55// @grant GM.getValue
161161// @include https://www.larecherche.fr/*
162162// @include https://www.larepubliquedespyrenees.fr/*
163163// @include https://www.journaldunet.com/*
164+ // @include https://www.science-et-vie.com/*
165+ // @include https://investir.lesechos.fr/*
164166//
165167// @run -at document-start
166168//
41434145 }
41444146 ` ) ;
41454147 }
4148+
4149+ if ( match ( hostname , "https://www.science-et-vie.com/*" ) ) {
4150+
4151+ window . addEventListener ( "load" , function ( event ) {
4152+ async function createLink ( ) {
4153+ return await ophirofoxEuropresseLink ( ) ;
4154+ }
4155+
4156+ async function onLoad ( ) {
4157+ const statusElem = document . querySelector ( ".tag_aboone" ) ;
4158+ if ( ! statusElem ) return ;
4159+ statusElem . appendChild ( await createLink ( ) ) ;
4160+ }
4161+
4162+ onLoad ( ) . catch ( console . error ) ;
4163+ } ) ;
4164+
4165+ pasteStyle ( `
4166+ .ophirofox-europresse{
4167+ padding: 0 5px 0 5px;
4168+ color: #000000!important;
4169+ border: #f05246 1px solid;
4170+ }
4171+ ` ) ;
4172+ }
4173+
4174+ if ( match ( hostname , "https://investir.lesechos.fr/*" ) ) {
4175+
4176+ window . addEventListener ( "load" , function ( event ) {
4177+ async function createLink ( ) {
4178+ return await ophirofoxEuropresseLink ( ) ;
4179+ }
4180+
4181+ async function onLoad ( ) {
4182+ const statusElem = document . querySelector ( ".post-subscriber-badge" ) ;
4183+ if ( ! statusElem ) return ;
4184+ statusElem . appendChild ( await createLink ( ) ) ;
4185+ }
4186+
4187+ onLoad ( ) . catch ( console . error ) ;
4188+ } ) ;
4189+
4190+ pasteStyle ( `
4191+ .ophirofox-europresse{
4192+ padding: 0 5px 0 5px;
4193+ color: #000000!important;
4194+ border: #f05246 1px solid;
4195+ display: block;
4196+ margin-left: auto;
4197+ margin-right: auto;
4198+ text-align: center;
4199+ }
4200+ ` ) ;
4201+ }
41464202} ) ( ) ;
0 commit comments