aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/static/js/hotkeys.js
diff options
context:
space:
mode:
authorzrose584 <57181548+zrose584@users.noreply.github.com>2020-10-17 19:51:41 +0200
committerzrose584 <57181548+zrose584@users.noreply.github.com>2020-10-17 19:51:41 +0200
commitf7f2b9fa06fd2218179636c712e43f0c4d65bd9e (patch)
tree809db0f303e52811a544f0351fe60a193e9d2897 /youtube/static/js/hotkeys.js
parente3c311e10a54ae1b7d9114cc58de315157538e0f (diff)
downloadyt-local-f7f2b9fa06fd2218179636c712e43f0c4d65bd9e.tar.lz
yt-local-f7f2b9fa06fd2218179636c712e43f0c4d65bd9e.tar.xz
yt-local-f7f2b9fa06fd2218179636c712e43f0c4d65bd9e.zip
add sponsorblock.js
Diffstat (limited to 'youtube/static/js/hotkeys.js')
-rw-r--r--youtube/static/js/hotkeys.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/static/js/hotkeys.js b/youtube/static/js/hotkeys.js
index 5688ef3..1f41510 100644
--- a/youtube/static/js/hotkeys.js
+++ b/youtube/static/js/hotkeys.js
@@ -37,7 +37,7 @@ 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 video_id = getVideoID();
let ts = Math.floor(Q("video").currentTime);
copyTextToClipboard(`https://youtu.be/${video_id}?t=${ts}`);
}