mirror of
https://github.com/MoizAhmedd/youtube-video-search.git
synced 2021-07-26 20:45:06 +03:00
figure out seeking method
This commit is contained in:
@@ -11,7 +11,7 @@ An extension that lets you search for words in a youtube video, and seeks to tha
|
||||
- <s>Determine when you're on a video</s>
|
||||
- <s>Get transcript of video given the video ID</s>
|
||||
- <s>Write a function that will given a word and transcript get a list of timestamps</s>
|
||||
- Write a function that will seek a youtube video to a timestamp
|
||||
- <s>Write a function that will seek a youtube video to a timestamp</s>
|
||||
- Searchbar + enter + shortcut logic
|
||||
|
||||
## Possible Pull Requests
|
||||
|
||||
10
content.js
10
content.js
@@ -1,8 +1,12 @@
|
||||
document.addEventListener('click', function(){
|
||||
if (window.location.href.includes('watch')) {
|
||||
chrome.runtime.sendMessage({type:"getTimestamp",word:"money"},function(response){
|
||||
console.log(response);
|
||||
//Seek to timestamp
|
||||
document.addEventListener('keydown', function(e) {
|
||||
console.log(e.code);
|
||||
// chrome.runtime.sendMessage({type:"getTimestamp",word:"money"},function(response){
|
||||
// console.log(response);
|
||||
// //Seek to timestamp
|
||||
// // document.getElementById('movie_player').seekTo(10,true)
|
||||
// })
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user