|
|
@ -705,8 +705,10 @@ if (location.pathname.startsWith('/embed/')) {
|
|
|
|
cb.addChild(watch_on_invidious_button);
|
|
|
|
cb.addChild(watch_on_invidious_button);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Save time during redirection on another instance
|
|
|
|
addEventListener('DOMContentLoaded', function () {
|
|
|
|
const changeInstanceLink = document.querySelector('#watch-on-another-invidious-instance > a');
|
|
|
|
// Save time during redirection on another instance
|
|
|
|
if (changeInstanceLink) changeInstanceLink.addEventListener('click', function () {
|
|
|
|
const changeInstanceLink = document.querySelector('#watch-on-another-invidious-instance > a');
|
|
|
|
|
|
|
|
if (changeInstanceLink) changeInstanceLink.addEventListener('click', function () {
|
|
|
|
changeInstanceLink.href = addCurrentTimeToURL(changeInstanceLink.href);
|
|
|
|
changeInstanceLink.href = addCurrentTimeToURL(changeInstanceLink.href);
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|