Enable middle click download on subscriptions as well

This commit is contained in:
2024-06-25 13:34:58 +02:00
parent aad190d94c
commit c930aeb737

View File

@@ -63,7 +63,7 @@ function hookVideo(videoElement) {
} }
async function main() { async function main() {
const videosContainer = await waitForElement(document, "div#contents.style-scope.ytd-rich-grid-renderer"); const videosContainer = await waitForElement(document, "ytd-rich-grid-renderer > div#contents");
for (const video of videosContainer.querySelectorAll("ytd-rich-item-renderer")) { for (const video of videosContainer.querySelectorAll("ytd-rich-item-renderer")) {
parseVideo(video); parseVideo(video);