diff --git a/plugins/navigation/front.js b/plugins/navigation/front.js index d89c989185..4874c3d5bb 100644 --- a/plugins/navigation/front.js +++ b/plugins/navigation/front.js @@ -8,7 +8,7 @@ function run() { templatePath(__dirname, "forward.html") ); const backButton = ElementFromFile(templatePath(__dirname, "back.html")); - const menu = document.querySelector("ytmusic-pivot-bar-renderer"); + const menu = document.querySelector("#right-content"); if (menu) { menu.prepend(backButton, forwardButton); diff --git a/plugins/navigation/style.css b/plugins/navigation/style.css index 5c4b4b5d94..520befea5b 100644 --- a/plugins/navigation/style.css +++ b/plugins/navigation/style.css @@ -10,7 +10,7 @@ align-items: center; color: rgba(255, 255, 255, 0.5); cursor: pointer; - margin: 0 var(--ytmusic-pivot-bar-tab-margin); + margin: 0 var(--ytd-rich-grid-item-margin); } .navigation-item:hover {