From 51ba8abca7d74d082afb9b7f3a91fab8232b8645 Mon Sep 17 00:00:00 2001 From: Ilingu Date: Sat, 12 Nov 2022 15:22:03 +0100 Subject: [PATCH] Fix for incorrect youtube redirect (#22) --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 2703a04..a3532c4 100644 --- a/src/main.js +++ b/src/main.js @@ -38,7 +38,7 @@ const destinationPath = window.location.href.slice(window.location.origin.length) - q("#watch-on-youtube").href = "https://www.youtube.com" + destinationPath + q("#watch-on-youtube").href = "https://www.youtube.com/watch?v=" + destinationPath for (const e of qa("[data-loading-message]")) { e.textContent = e.getAttribute("data-loading-message")