diff options
author | zrose584 <57181548+zrose584@users.noreply.github.com> | 2020-10-17 19:51:41 +0200 |
---|---|---|
committer | zrose584 <57181548+zrose584@users.noreply.github.com> | 2020-10-17 19:51:41 +0200 |
commit | f7f2b9fa06fd2218179636c712e43f0c4d65bd9e (patch) | |
tree | 809db0f303e52811a544f0351fe60a193e9d2897 /youtube/static/js/common.js | |
parent | e3c311e10a54ae1b7d9114cc58de315157538e0f (diff) | |
download | yt-local-f7f2b9fa06fd2218179636c712e43f0c4d65bd9e.tar.lz yt-local-f7f2b9fa06fd2218179636c712e43f0c4d65bd9e.tar.xz yt-local-f7f2b9fa06fd2218179636c712e43f0c4d65bd9e.zip |
add sponsorblock.js
Diffstat (limited to 'youtube/static/js/common.js')
-rw-r--r-- | youtube/static/js/common.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube/static/js/common.js b/youtube/static/js/common.js index 2db4390..42fa41f 100644 --- a/youtube/static/js/common.js +++ b/youtube/static/js/common.js @@ -108,6 +108,10 @@ function copyTextToClipboard(text) { document.body.removeChild(textArea); } +function getVideoID() { + return JSON.parse(Q(".video-info input[name=video_info_list]").value).id +} + window.addEventListener('DOMContentLoaded', function() { cur_track_idx = getDefaultTranscriptTrackIdx(); |