mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-17 05:02:06 +00:00
fix PiP button showing in non player-bar menu's
This commit is contained in:
@ -30,7 +30,7 @@ const observer = new MutationObserver(() => {
|
|||||||
menu = getSongMenu();
|
menu = getSongMenu();
|
||||||
if (!menu) return;
|
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 = $(
|
const menuUrl = $(
|
||||||
'tp-yt-paper-listbox [tabindex="0"] #navigation-endpoint'
|
'tp-yt-paper-listbox [tabindex="0"] #navigation-endpoint'
|
||||||
)?.href;
|
)?.href;
|
||||||
|
|||||||
Reference in New Issue
Block a user