Merge pull request #1048 from Araxeus/fix-playback-speed-selector

Fix playback speed slider not showing and PiP button showing when it shouldn't
This commit is contained in:
th-ch
2023-03-08 21:15:36 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ const observer = new MutationObserver(() => {
menu = getSongMenu();
if (!menu) return;
}
if (menu.contains(pipButton)) return;
if (menu.contains(pipButton) || !menu.parentElement.eventSink_?.matches('ytmusic-menu-renderer.ytmusic-player-bar')) return;
const menuUrl = $(
'tp-yt-paper-listbox [tabindex="0"] #navigation-endpoint'
)?.href;