Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions resources/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -550,5 +550,11 @@
"description": "Greatly increases the width of the Now Playing View panel beyond the default limit (feel free to change it to your liking) at the cost of losing the ability to drag-resize it and enhances it with a cleaner look by removing the dark gradient over the canvas loop video and moving a few elements further down.",
"code": ".NowPlayingView { border-radius: 8px !important; } [data-right-sidebar-hidden=false] .Root__right-sidebar, .npv-nowPlayingbar-container, .oXO9_yYs6JyOwkBn8E4a { width: 670px !important; } [data-right-sidebar-hidden=true] .Root__right-sidebar, .npv-nowPlayingbar-container { width: 0px !important; } .main-nowPlayingView-nowPlayingGrid:has(.canvasVideoContainerNPV video) { .main-nowPlayingView-contextItemInfo { margin-top: 30vh !important; } [aria-hidden=false] .HIaySI1OwWK1MLojie8y, .fetnShpUoCol51CFSqwn { margin-top: 26vh !important; margin-bottom: -31vh !important; } .canvasVideoContainerNPV { margin-top: -5vh !important; } .Of__Db4QgB9osz_mFxhw:before, .Of__Db4QgB9osz_mFxhw:after { background: transparent !important; } }",
"preview": "resources/assets/snippets/giga_npv_canvas.png"
},
{
"title": "Remove duplicated/stock lyrics button",
"description": "Removes only the stock microphone icon. Best used with lyrics extensions (eg. Spicy Lyrics) to fix duplicate playbar buttons.",
"code": ".main-nowPlayingBar-lyricsButton[data-testid="lyrics-button"] { display: none !important; }",
"preview": "resources/assets/snippets/fix-duplicate-lyrics.png"
Comment on lines +553 to +558

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🔴 Critical | ⚡ Quick win

Escape the selector’s inner quotes to keep the manifest valid JSON.

Line 557 terminates the JSON string at data-testid=", so resources/snippets.json cannot be parsed and the catalog will fail to load.

Proposed fix
-  "code": ".main-nowPlayingBar-lyricsButton[data-testid="lyrics-button"] { display: none !important; }",
+  "code": ".main-nowPlayingBar-lyricsButton[data-testid=\"lyrics-button\"] { display: none !important; }",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
},
{
"title": "Remove duplicated/stock lyrics button",
"description": "Removes only the stock microphone icon. Best used with lyrics extensions (eg. Spicy Lyrics) to fix duplicate playbar buttons.",
"code": ".main-nowPlayingBar-lyricsButton[data-testid="lyrics-button"] { display: none !important; }",
"preview": "resources/assets/snippets/fix-duplicate-lyrics.png"
},
{
"title": "Remove duplicated/stock lyrics button",
"description": "Removes only the stock microphone icon. Best used with lyrics extensions (eg. Spicy Lyrics) to fix duplicate playbar buttons.",
"code": ".main-nowPlayingBar-lyricsButton[data-testid=\"lyrics-button\"] { display: none !important; }",
"preview": "resources/assets/snippets/fix-duplicate-lyrics.png"
🧰 Tools
🪛 Biome (2.5.3)

[error] 557-557: expected , but instead found lyrics

(parse)


[error] 557-557: Minus must be followed by a digit

(parse)


[error] 557-557: expected , but instead found button

(parse)


[error] 557-557: expected : but instead found "] { display: none !important; }"

(parse)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@resources/snippets.json` around lines 553 - 558, Escape the inner double
quotes around the data-testid value in the code string for “Remove
duplicated/stock lyrics button” so resources/snippets.json remains valid JSON
and the selector is preserved unchanged.

Source: Linters/SAST tools

}
]
Loading