File tree Expand file tree Collapse file tree 6 files changed +8
-11
lines changed
Expand file tree Collapse file tree 6 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " spotify-lyrics" ,
3- "version" : " 1.6.8 " ,
3+ "version" : " 1.6.9 " ,
44 "description" : " Desktop Spotify Web Player Instant Synchronized Lyrics" ,
55 "scripts" : {
66 "lint" : " tsc --noEmit && eslint --ext .ts --fix src/" ,
Original file line number Diff line number Diff line change 11{
22 "$schema" : " https://raw.githubusercontent.com/extend-chrome/manifest-json-schema/main/schema/manifest.schema.json" ,
33 "name" : " __MSG_extensionName__" ,
4- "version" : " 1.6.8 " ,
4+ "version" : " 1.6.9 " ,
55 "manifest_version" : 3 ,
66 "description" : " __MSG_extensionDescription__" ,
77 "default_locale" : " en" ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const defaultOptions: Options = {
1818 'toggle-shortcut' : 'l' ,
1919 'traditional-chinese-lyrics' : uiLanguage === 'zh-TW' || uiLanguage === 'zh-HK' ? 'on' : 'off' ,
2020 'lyrics-transform' : 'Origin' ,
21- 'lyrics-server' : 'NetEase ' ,
21+ 'lyrics-server' : 'LRCLIB ' ,
2222} ;
2323
2424export async function getOptions ( ) {
Original file line number Diff line number Diff line change @@ -93,10 +93,10 @@ export const insetLyricsBtn = async () => {
9393
9494 if ( btnWrapper . getElementsByClassName ( localConfig . LYRICS_CLASSNAME ) . length ) return ;
9595
96- if ( localConfig . BTN_CONTINER_STYLE ) {
96+ if ( localConfig . BTN_CONTAINER_STYLE ) {
9797 const root = btnWrapper . shadowRoot || ( btnWrapper . getRootNode ( ) as unknown as ShadowRoot ) ;
9898 const style = new CSSStyleSheet ( ) ;
99- style . replaceSync ( localConfig . BTN_CONTINER_STYLE ) ;
99+ style . replaceSync ( localConfig . BTN_CONTAINER_STYLE ) ;
100100 root . adoptedStyleSheets . push ( style ) ;
101101 }
102102
@@ -160,8 +160,5 @@ export const insetLyricsBtn = async () => {
160160 captureException ( e ) ;
161161 }
162162 } ) ;
163- const children = [ ...lyricsBtn . children ] ;
164163 btnWrapper . append ( lyricsBtn ) ;
165- await Promise . resolve ( ) ;
166- lyricsBtn . append ( ...children ) ;
167164} ;
Original file line number Diff line number Diff line change 2222 "TRACK_NAME_SELECTOR" : " ytmusic-player-bar .content-info-wrapper .title" ,
2323 "TRACK_ARTIST_SELECTOR" : " ytmusic-player-bar .content-info-wrapper .subtitle yt-formatted-string > :first-child" ,
2424 "BTN_WRAPPER_SELECTOR" : " ytmusic-player-bar ytmusic-like-button-renderer" ,
25- "BTN_LIKE_SELECTOR" : " ytmusic-player-bar ytmusic-like-button-renderer yt-button-shape.like" ,
25+ "BTN_LIKE_SELECTOR" : " ytmusic-player-bar ytmusic-like-button-renderer yt-button-shape.like button " ,
2626 "PIP_BTN_SELECTOR" : " NONE" ,
2727 "AUDIO_SELECTOR" : " video.html5-main-video"
2828 },
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ interface LocalConfig {
4040 // Some fixed styles, they will be inserted into the page as quickly as possible, avoid page flickering
4141 STATIC_STYLE : string ;
4242 // lyrics button host style
43- BTN_CONTINER_STYLE ?: string ;
43+ BTN_CONTAINER_STYLE ?: string ;
4444 // The style that should be added when the lyrics will be displayed on the page
4545 NO_PIP_STYLE : string ;
4646 // CSS class Name of the lyrics button
@@ -139,7 +139,7 @@ export const localConfig: LocalConfig = (() => {
139139 display : none !important ;
140140 }
141141 ` ,
142- BTN_CONTINER_STYLE : css `
142+ BTN_CONTAINER_STYLE : css `
143143 .${ LYRICS_CLASSNAME } {
144144 --playback-control-button-width : var (--shuffle-repeat-button-width , 32px );
145145 --playback-control-icon-height : var (--shuffle-repeat-icon-height , 28px );
You can’t perform that action at this time.
0 commit comments