mirror of
https://github.com/iv-org/invidious
synced 2024-11-28 05:53:28 +01:00
Save time during redirection on another instance
This commit is contained in:
parent
b729597728
commit
b12149bafd
@ -704,3 +704,9 @@ if (location.pathname.startsWith('/embed/')) {
|
|||||||
var cb = player.getChild('ControlBar');
|
var cb = player.getChild('ControlBar');
|
||||||
cb.addChild(watch_on_invidious_button);
|
cb.addChild(watch_on_invidious_button);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Save time during redirection on another instance
|
||||||
|
const changeInstanceLink = document.querySelector('#watch-on-another-invidious-instance > a');
|
||||||
|
if (changeInstanceLink) changeInstanceLink.addEventListener('click', function () {
|
||||||
|
changeInstanceLink.href = addCurrentTimeToURL(changeInstanceLink.href);
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user