From 79e71dae26f8bda1cd1d1ec4d8a9c3a3806c318c Mon Sep 17 00:00:00 2001 From: Araxeus <78568641+Araxeus@users.noreply.github.com> Date: Tue, 28 Feb 2023 19:49:39 +0200 Subject: [PATCH] fix playback speed selector replace querying for the text `Stats` (which is language specific) with querying that the event origin is the button on the player-bar fix #1045 --- plugins/playback-speed/front.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/playback-speed/front.js b/plugins/playback-speed/front.js index 6f972d14..da01182c 100644 --- a/plugins/playback-speed/front.js +++ b/plugins/playback-speed/front.js @@ -30,7 +30,7 @@ const observePopupContainer = () => { menu = getSongMenu(); } - if (menu && menu.lastElementChild.lastElementChild.innerText.startsWith('Stats') && !menu.contains(slider)) { + if (menu && menu.parentElement.eventSink_?.matches('ytmusic-menu-renderer.ytmusic-player-bar') && !menu.contains(slider)) { menu.prepend(slider); if (!observingSlider) { setupSliderListener();