diff options
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(); |