mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 02:31:45 +00:00
Add plugin to always use the compact sidebar
This commit is contained in:
10
plugins/compact-sidebar/front.js
Normal file
10
plugins/compact-sidebar/front.js
Normal 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();
|
||||||
|
}
|
||||||
|
};
|
||||||
@ -69,6 +69,8 @@ winget install th-ch.YouTubeMusic
|
|||||||
|
|
||||||
- **Captions selector**: Enable captions
|
- **Captions selector**: Enable captions
|
||||||
|
|
||||||
|
- **Compact sidebar**: Always set the sidebar in compact mode
|
||||||
|
|
||||||
- **Crossfade**: Crossfade between songs
|
- **Crossfade**: Crossfade between songs
|
||||||
|
|
||||||
- **Disable Autoplay**: Makes every song start in "paused" mode
|
- **Disable Autoplay**: Makes every song start in "paused" mode
|
||||||
|
|||||||
Reference in New Issue
Block a user