Add plugin to always use the compact sidebar

This commit is contained in:
TC
2023-07-04 21:51:50 +02:00
parent 1ed43e11ad
commit 34aded725d
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,10 @@
module.exports = () => {
const compactSidebar = document.querySelector("#mini-guide");
const isCompactSidebarDisabled =
compactSidebar === null ||
window.getComputedStyle(compactSidebar).display === "none";
if (isCompactSidebarDisabled) {
document.querySelector("#button").click();
}
};

View File

@ -69,6 +69,8 @@ winget install th-ch.YouTubeMusic
- **Captions selector**: Enable captions
- **Compact sidebar**: Always set the sidebar in compact mode
- **Crossfade**: Crossfade between songs
- **Disable Autoplay**: Makes every song start in "paused" mode