Fix for incorrect youtube redirect (#22)

This commit is contained in:
Ilingu 2022-11-12 15:22:03 +01:00
parent 7eed9d5a1f
commit 51ba8abca7
No known key found for this signature in database
GPG key ID: 4F14897EE9E32AFA

View file

@ -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")