JS: Replace '.setAttribute("href")' with '.href'

Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>
このコミットが含まれているのは:
Samantaz Fox 2023-09-17 10:21:11 +00:00 committed by GitHub
コミット 700c57559b
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更4行の追加4行の削除

ファイルの表示

@ -127,8 +127,8 @@ player.on('timeupdate', function () {
let base_url_yt_watch = elem_yt_watch.getAttribute('data-base-url');
let base_url_yt_embed = elem_yt_embed.getAttribute('data-base-url');
elem_yt_watch.setAttribute('href') = addCurrentTimeToURL(base_url_yt_watch);
elem_yt_embed.setAttribute('href') = addCurrentTimeToURL(base_url_yt_embed);
elem_yt_watch.href = addCurrentTimeToURL(base_url_yt_watch);
elem_yt_embed.href = addCurrentTimeToURL(base_url_yt_embed);
// Invidious links
@ -138,8 +138,8 @@ player.on('timeupdate', function () {
let base_url_iv_embed = elem_iv_embed.getAttribute('data-base-url');
let base_url_iv_other = elem_iv_other.getAttribute('data-base-url');
elem_iv_embed.setAttribute('href') = addCurrentTimeToURL(base_url_iv_embed);
elem_iv_other.setAttribute('href') = addCurrentTimeToURL(base_url_iv_other);
elem_iv_embed.href = addCurrentTimeToURL(base_url_iv_embed);
elem_iv_other.href = addCurrentTimeToURL(base_url_iv_other);
});