Invidious is an alternative front-end to YouTube
transform template string
meow352f3640cfbe
diff --git a/assets/js/player.js b/assets/js/player.jsindex 440f880a..e0c9829e 100644--- a/assets/js/player.js+++ b/assets/js/player.js@@ -767,7 +767,7 @@ if (window.location.pathname.startsWith('/embed/')) {// Create hyperlink for current instanceredirect_element = document.createElement('a');- redirect_element.setAttribute('href', `//${window.location.host}/watch?v=${window.location.pathname.replace('/embed/','')}`);+ redirect_element.setAttribute('href', location.pathname.replace('/embed/', '/watch?v='));redirect_element.appendChild(document.createTextNode('Invidious'));watch_on_invidious_button.el().appendChild(redirect_element);