diff options
author | James Taylor <28744867+user234683@users.noreply.github.com> | 2020-10-21 18:53:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-21 18:53:34 -0700 |
commit | 8b54a5f3aa376651bf063baa6893fe9b7f0e2ca0 (patch) | |
tree | 6bff6ae507db03e435bb04e3969ef08093f3f8d8 /youtube/static/js/hotkeys.js | |
parent | f01ef36a37c9112eca3f85d49622c41d68000a69 (diff) | |
parent | aa52c7a42e9573105dfadb07981c7f5f1447ca9d (diff) | |
download | yt-local-8b54a5f3aa376651bf063baa6893fe9b7f0e2ca0.tar.lz yt-local-8b54a5f3aa376651bf063baa6893fe9b7f0e2ca0.tar.xz yt-local-8b54a5f3aa376651bf063baa6893fe9b7f0e2ca0.zip |
Merge pull request #32 from zrose584/add_sponsorblock
add sponsorblock.js
Diffstat (limited to 'youtube/static/js/hotkeys.js')
-rw-r--r-- | youtube/static/js/hotkeys.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube/static/js/hotkeys.js b/youtube/static/js/hotkeys.js index 5688ef3..e199f3b 100644 --- a/youtube/static/js/hotkeys.js +++ b/youtube/static/js/hotkeys.js @@ -37,9 +37,8 @@ function onKeyDown(e) { else tt.mode = "showing"; } else if (c == "t") { - let video_id = JSON.parse(Q(".video-info input[name=video_info_list]").value).id let ts = Math.floor(Q("video").currentTime); - copyTextToClipboard(`https://youtu.be/${video_id}?t=${ts}`); + copyTextToClipboard(`https://youtu.be/${data.video_id}?t=${ts}`); } } |