diff --git a/src/js/Folders.js b/src/js/Folders.js index 6be6a08..9f261ec 100644 --- a/src/js/Folders.js +++ b/src/js/Folders.js @@ -1,7 +1,7 @@ import { waitForElement, htmlToNode } from "./Util"; import { icons } from "./Icons"; -waitForElement([`.main-rootlist-rootlistPlaylistsScrollNode ul[tabindex="0"]`, `.main-rootlist-rootlistPlaylistsScrollNode ul[tabindex="0"] li`], ([root, firstItem]) => { +waitForElement([`.main-navBar-navBar ul[tabindex="0"]`, `.main-navBar-navBar ul[tabindex="0"] li`], ([root, firstItem]) => { const listElem = firstItem.parentElement; root.classList.add("dribs-playlist-list"); diff --git a/src/js/main.js b/src/js/main.js index d47c78d..1f3f881 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -241,7 +241,7 @@ Dribbblish.on("ready", () => { // } // }); - waitForElement([".main-rootlist-rootlist", ".main-rootlist-wrapper > :nth-child(2) > :first-child", "#spicetify-show-list"], ([rootlist]) => { + waitForElement([".navBar-navBar", ".main-rootlist-wrapper > :nth-child(2) > :first-child", "#spicetify-show-list"], ([rootlist]) => { function checkSidebarPlaylistScroll() { const topDist = rootlist.getBoundingClientRect().top - document.querySelector("#spicetify-show-list:not(:empty), .main-rootlist-wrapper > :nth-child(2) > :first-child").getBoundingClientRect().top; const bottomDist = document.querySelector(".main-rootlist-wrapper > :nth-child(2) > :last-child").getBoundingClientRect().bottom - rootlist.getBoundingClientRect().bottom;