File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change 11// ==UserScript==
2- // @version 2.5.250620.2136
2+ // @version 2.5.250628.2313
33// @author Write
44// @name OphirofoxScript
55// @grant GM.getValue
163163// @include https://www.journaldunet.com/*
164164// @include https://www.science-et-vie.com/*
165165// @include https://investir.lesechos.fr/*
166+ // @include https://www.jeuneafrique.com/*
166167//
167168// @run -at document-start
168169//
43044305 }
43054306 ` ) ;
43064307 }
4308+
4309+ if ( match ( hostname , "https://www.jeuneafrique.com/*" ) ) {
4310+
4311+ window . addEventListener ( "load" , function ( event ) {
4312+ async function createLink ( ) {
4313+ const a = await ophirofoxEuropresseLink ( ) ;
4314+ a . className = "ophirofox-europresse" ;
4315+ return a ;
4316+ }
4317+
4318+ async function onLoad ( ) {
4319+ const header = document . querySelector ( ".article__header" ) ;
4320+ if ( ! header ) return ;
4321+ header . appendChild ( await createLink ( ) ) ;
4322+ }
4323+
4324+ onLoad ( ) . catch ( console . error ) ;
4325+ } ) ;
4326+
4327+ pasteStyle ( `
4328+ .ophirofox-europresse {
4329+ display: inline-block;
4330+ padding: 0.25rem 1rem;
4331+ border-radius: 0.3rem;
4332+ background-color: #ffc700;
4333+ color: #000 !important;
4334+ text-align: center;
4335+ text-decoration: none;
4336+ }
4337+ ` ) ;
4338+ }
43074339} ) ( ) ;
You can’t perform that action at this time.
0 commit comments