add sponsorblock.js

This commit is contained in:
zrose584
2020-10-17 19:51:41 +02:00
parent e3c311e10a
commit f7f2b9fa06
6 changed files with 65 additions and 9 deletions

View File

@@ -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}`);
}