File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11// ==UserScript==
2- // @version 2.4.26326.30329
2+ // @version 2.4.26327.43782
33// @author Write
44// @name OphirofoxScript
55// @grant GM.getValue
17031703
17041704
17051705 function findPremiumBanner ( ) {
1706- const title = document . querySelector ( ".header-article-premium__stamp " ) ;
1707- if ( ! title ) return null ;
1708- const elems = title . parentElement . querySelectorAll ( "span" ) ;
1709- return [ ... elems ] . find ( d => d . textContent . includes ( "Article réservé aux abonnés" ) )
1706+ const array = document . querySelectorAll ( ".rev-margin-0.rev-text-xs-bold " ) ;
1707+ const reserve = Array . from ( array ) . find ( p => p . textContent . includes ( "Article réservé aux abonnés" ) ) ;
1708+ if ( ! reserve ) return null ;
1709+ return reserve
17101710 }
17111711
17121712 async function onLoad ( ) {
You can’t perform that action at this time.
0 commit comments