Save time during redirection on another instance

このコミットが含まれているのは:
meow 2022-05-31 11:58:12 +03:00
コミット b12149bafd
1個のファイルの変更6行の追加0行の削除

ファイルの表示

@ -704,3 +704,9 @@ if (location.pathname.startsWith('/embed/')) {
var cb = player.getChild('ControlBar');
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);
});