File tree 6 files changed +8
-11
lines changed
6 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " spotify-lyrics" ,
3
- "version" : " 1.6.8 " ,
3
+ "version" : " 1.6.9 " ,
4
4
"description" : " Desktop Spotify Web Player Instant Synchronized Lyrics" ,
5
5
"scripts" : {
6
6
"lint" : " tsc --noEmit && eslint --ext .ts --fix src/" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " https://raw.githubusercontent.com/extend-chrome/manifest-json-schema/main/schema/manifest.schema.json" ,
3
3
"name" : " __MSG_extensionName__" ,
4
- "version" : " 1.6.8 " ,
4
+ "version" : " 1.6.9 " ,
5
5
"manifest_version" : 3 ,
6
6
"description" : " __MSG_extensionDescription__" ,
7
7
"default_locale" : " en" ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const defaultOptions: Options = {
18
18
'toggle-shortcut' : 'l' ,
19
19
'traditional-chinese-lyrics' : uiLanguage === 'zh-TW' || uiLanguage === 'zh-HK' ? 'on' : 'off' ,
20
20
'lyrics-transform' : 'Origin' ,
21
- 'lyrics-server' : 'NetEase ' ,
21
+ 'lyrics-server' : 'LRCLIB ' ,
22
22
} ;
23
23
24
24
export async function getOptions ( ) {
Original file line number Diff line number Diff line change @@ -93,10 +93,10 @@ export const insetLyricsBtn = async () => {
93
93
94
94
if ( btnWrapper . getElementsByClassName ( localConfig . LYRICS_CLASSNAME ) . length ) return ;
95
95
96
- if ( localConfig . BTN_CONTINER_STYLE ) {
96
+ if ( localConfig . BTN_CONTAINER_STYLE ) {
97
97
const root = btnWrapper . shadowRoot || ( btnWrapper . getRootNode ( ) as unknown as ShadowRoot ) ;
98
98
const style = new CSSStyleSheet ( ) ;
99
- style . replaceSync ( localConfig . BTN_CONTINER_STYLE ) ;
99
+ style . replaceSync ( localConfig . BTN_CONTAINER_STYLE ) ;
100
100
root . adoptedStyleSheets . push ( style ) ;
101
101
}
102
102
@@ -160,8 +160,5 @@ export const insetLyricsBtn = async () => {
160
160
captureException ( e ) ;
161
161
}
162
162
} ) ;
163
- const children = [ ...lyricsBtn . children ] ;
164
163
btnWrapper . append ( lyricsBtn ) ;
165
- await Promise . resolve ( ) ;
166
- lyricsBtn . append ( ...children ) ;
167
164
} ;
Original file line number Diff line number Diff line change 22
22
"TRACK_NAME_SELECTOR" : " ytmusic-player-bar .content-info-wrapper .title" ,
23
23
"TRACK_ARTIST_SELECTOR" : " ytmusic-player-bar .content-info-wrapper .subtitle yt-formatted-string > :first-child" ,
24
24
"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 " ,
26
26
"PIP_BTN_SELECTOR" : " NONE" ,
27
27
"AUDIO_SELECTOR" : " video.html5-main-video"
28
28
},
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ interface LocalConfig {
40
40
// Some fixed styles, they will be inserted into the page as quickly as possible, avoid page flickering
41
41
STATIC_STYLE : string ;
42
42
// lyrics button host style
43
- BTN_CONTINER_STYLE ?: string ;
43
+ BTN_CONTAINER_STYLE ?: string ;
44
44
// The style that should be added when the lyrics will be displayed on the page
45
45
NO_PIP_STYLE : string ;
46
46
// CSS class Name of the lyrics button
@@ -139,7 +139,7 @@ export const localConfig: LocalConfig = (() => {
139
139
display : none !important ;
140
140
}
141
141
` ,
142
- BTN_CONTINER_STYLE : css `
142
+ BTN_CONTAINER_STYLE : css `
143
143
.${ LYRICS_CLASSNAME } {
144
144
--playback-control-button-width : var (--shuffle-repeat-button-width , 32px );
145
145
--playback-control-icon-height : var (--shuffle-repeat-icon-height , 28px );
You can’t perform that action at this time.
0 commit comments