11// ==UserScript==
2- // @version 2.5.250521.1619
2+ // @version 2.5.250522.1547
33// @author Write
44// @name OphirofoxScript
55// @grant GM.getValue
159159// @include https://acteurspublics.fr/*
160160// @include https://www.sciencesetavenir.fr/*
161161// @include https://www.larecherche.fr/*
162+ // @include https://www.larepubliquedespyrenees.fr/*
163+ // @include https://www.journaldunet.com/*
162164//
163165// @run -at document-start
164166//
40904092 }
40914093 ` ) ;
40924094 }
4095+
4096+ if ( match ( hostname , "https://www.larepubliquedespyrenees.fr/*" ) ) {
4097+
4098+ window . addEventListener ( "load" , function ( event ) {
4099+ async function createLink ( ) {
4100+ return await ophirofoxEuropresseLink ( ) ;
4101+ }
4102+
4103+ async function onLoad ( ) {
4104+ const statusElem = document . querySelector ( ".tag.color-premium.uppercase" ) ;
4105+ if ( ! statusElem ) return ;
4106+ statusElem . appendChild ( await createLink ( ) ) ;
4107+ }
4108+
4109+ onLoad ( ) . catch ( console . error ) ;
4110+ } ) ;
4111+
4112+ pasteStyle ( `
4113+ .ophirofox-europresse{
4114+ display: inline-block;
4115+ padding: 3px 5px 1px 5px;
4116+ border: #f05246 1px solid;
4117+ }
4118+ ` ) ;
4119+ }
4120+
4121+ if ( match ( hostname , "https://www.journaldunet.com/*" ) ) {
4122+
4123+ window . addEventListener ( "load" , function ( event ) {
4124+ async function createLink ( ) {
4125+ return await ophirofoxEuropresseLink ( ) ;
4126+ }
4127+
4128+ async function onLoad ( ) {
4129+ const statusElem = document . querySelector ( ".entry.entry_reg_wall" ) ;
4130+ if ( ! statusElem ) return ;
4131+ document . querySelector ( 'h1' ) . appendChild ( await createLink ( ) ) ;
4132+ }
4133+
4134+ onLoad ( ) . catch ( console . error ) ;
4135+ } ) ;
4136+
4137+ pasteStyle ( `
4138+ .ophirofox-europresse{
4139+ display: inline-block;
4140+ padding: 3px 5px 1px 5px;
4141+ border: #f05246 1px solid;
4142+ font-size: small;
4143+ }
4144+ ` ) ;
4145+ }
40934146} ) ( ) ;
0 commit comments