Skip to content

Commit 512c69c

Browse files
authored
Update config.json
1 parent 4d62020 commit 512c69c

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

Diff for: src/page/config.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"API_HOST": "https://music.xianqiao.wang/neteaseapiv2",
3-
"LOGGED_MARK_SELECTOR": "header [data-testid=user-widget-link]",
3+
"LOGGED_MARK_SELECTOR": "#global-nav-bar [data-testid=user-widget-link]",
44
"LYRICS_CONTAINER_SELECTOR": "nav[aria-label] > div:last-of-type",
55
"PAGE_PIP_STYLE": "position: relative; width: 100%; height: auto; border-radius: inherit;",
66
"ALBUM_COVER_SELECTOR": "[role=contentinfo] > div:nth-child(1) img",
@@ -9,7 +9,7 @@
99
"TRACK_NAME_SELECTOR": "[role=contentinfo] > div:nth-child(2) > div:nth-child(1)",
1010
"TRACK_ARTIST_SELECTOR": "[role=contentinfo] > div:nth-child(2) > div:last-of-type",
1111
"BTN_WRAPPER_SELECTOR": "[role=contentinfo]",
12-
"BTN_LIKE_SELECTOR": "[role=contentinfo] > button:last-of-type",
12+
"BTN_LIKE_SELECTOR": "[role=contentinfo] > div:last-of-type",
1313
"PIP_BTN_SELECTOR": "[role=contentinfo] button[data-testid*=pip], [data-testid=now-playing-bar] > div > div:last-of-type > div > :where(button[data-testid=lyrics-button], button[data-testid=pip-toggle-button])",
1414
"AUDIO_SELECTOR": "NONE",
1515
"YOUTUBE": {
@@ -98,6 +98,7 @@
9898
"chung ha": "金请夏",
9999
"hwa sa": "华莎",
100100
"bibi zhou": "周笔畅",
101+
"steve chou": "周传雄",
101102
"chinoyang": "杨晓川",
102103
"koala liu": "刘思涵",
103104
"e.so": "瘦子e.so",

Diff for: src/page/config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ export const localConfig: LocalConfig = (() => {
203203
/* not logged in, cookie banner */
204204
#onetrust-consent-sdk,
205205
/* webpage: upgrade button */
206-
.Root [data-testid="topbar"] [data-testid="upgrade-button"],
206+
.Root #global-nav-bar [data-testid="upgrade-button"],
207207
/* webpage: download link */
208-
.Root [data-testid="topbar"] [href*=download] {
208+
.Root #global-nav-bar [href*=download] {
209209
display: none;
210210
}
211211
.${LYRICS_CLASSNAME} {

Diff for: src/page/element.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Message, Event } from '../common/constants';
1+
import { Message, Event, isProd } from '../common/constants';
22

33
import { captureException, documentQueryHasSelector, querySelector } from './utils';
44
import { getLyricsBtn } from './btn';
@@ -72,6 +72,7 @@ export const audioPromise = new Promise<HTMLAudioElement>((resolveAudio) => {
7272
// Spotify: <video>
7373
// Deezer: <audio>
7474
if ((tagName === 'video' || tagName === 'audio') && !audio) {
75+
if (!isProd) console.log('capture_audio_element', audio);
7576
performance.measure('capture_audio_element');
7677
audio = element as HTMLAudioElement;
7778
resolveAudio(audio);

0 commit comments

Comments
 (0)