File tree Expand file tree Collapse file tree
src/scripts/content/nebula Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ export const nebula = async () => {
2020 document . addEventListener ( `${ loadPrefix } -creator` , createLinkForAll ) ;
2121 document . body . addEventListener ( 'mouseover' , hover ) ;
2222 document . body . addEventListener ( 'click' , click ) ;
23- document . querySelector ( '[href="https://standard.tv/"]' ) ?. nextElementSibling ?. nextElementSibling ?. addEventListener ?.( 'click' , changeTheme ) ;
2423
2524 // inject web content script
2625 await injectScript ( getBrowserInstance ( ) . runtime . getURL ( '/scripts/player.js' ) , document . body ) ;
@@ -93,6 +92,9 @@ const click = async (e: MouseEvent) => {
9392 const q = Queue . get ( ) ;
9493 const target = e . target as HTMLElement ;
9594
95+ if ( target . closest ( '[href="https://standard.tv/"] + * + * > *:nth-child(2)' ) )
96+ return changeTheme ( e ) ;
97+
9698 const addAll = target . closest ( '.enhancer-queueButtonAll' ) ;
9799 if ( addAll !== null ) {
98100 e . preventDefault ( ) ;
You can’t perform that action at this time.
0 commit comments