From c930aeb73725fce66f70cb5ff5f2330b1c846ae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Majdand=C5=BEi=C4=87?= Date: Tue, 25 Jun 2024 13:34:58 +0200 Subject: [PATCH] Enable middle click download on subscriptions as well --- tampermonkey.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tampermonkey.js b/tampermonkey.js index d58e91c..7ba6c71 100644 --- a/tampermonkey.js +++ b/tampermonkey.js @@ -63,7 +63,7 @@ function hookVideo(videoElement) { } 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")) { parseVideo(video);