Skip to content

Commit

Permalink
Fixed deezer
Browse files Browse the repository at this point in the history
  • Loading branch information
mantou132 committed Oct 3, 2020
1 parent ef526d6 commit dfec827
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/page/btn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { openEditor } from './editor';
// Hide the original content that conflicts with the lyrics button
// In spotify is the pip button
// In deezer is the native lyrics button, and many lyrics buttons
// Note that the css selector needs to support multiple languages
config.then(({ PIP_BTN_SELECTOR }) => {
appendStyle(css`
${PIP_BTN_SELECTOR} {
Expand Down
2 changes: 1 addition & 1 deletion src/page/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"TRACK_NAME_SELECTOR": "#page_player .player-track .track-title .marquee-content a:first-child",
"TRACK_ARTIST_SELECTOR": "#page_player .player-track .track-title .marquee-content a:last-child",
"BTN_WRAPPER_SELECTOR": "#page_player .player-track .track-actions ul",
"BTN_LIKE_SELECTOR": "#page_player .player-track .track-actions ul li:not([class*=lyrics i]):has(button[aria-label*=favourite i])",
"BTN_LIKE_SELECTOR": "#page_player .player-track .track-actions ul li:not([class*=lyrics i]):has(svg[class*=love i])",
"PIP_BTN_SELECTOR": ".svg-icon-group-btn[aria-label*=lyrics i], .datagrid-row.song .datagrid-cell-action[aria-label*=playlist i] ~ div ~ div.datagrid-cell-action",
"AUDIO_SELECTOR": "NONE"
},
Expand Down

0 comments on commit dfec827

Please sign in to comment.