Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 08ce1a7

Browse files
committedApr 4, 2025·
Dump 1.6.9
1 parent 7a3e297 commit 08ce1a7

File tree

6 files changed

+8
-11
lines changed

6 files changed

+8
-11
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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/",

‎public/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",

‎src/options/store.ts

+1-1
Original file line numberDiff line numberDiff 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

2424
export async function getOptions() {

‎src/page/btn.ts

+2-5
Original file line numberDiff line numberDiff 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
};

‎src/page/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
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
},

‎src/page/config.ts

+2-2
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)
Please sign in to comment.