DynamoCrew / MYC

Idea
MIT License
0 stars 2 forks source link

create a reliable way to get current window url link #11

Open kllarena07 opened 6 months ago

kllarena07 commented 6 months ago

Is your feature request related to a problem? Please describe. YouTube uses shallow routing so our current method of using load event listener doesn't work reliably whenever the video changes. Tthe popstate and hashchange events do not work as well

Describe the solution you'd like Use a background script to send the current tab url to the content script, which will use the fetch() api to send the video_id to the Flask server. Make sure that this background script also only runs when the tab is on a YouTube video

Describe alternatives you've considered

kllarena07 commented 6 months ago

Additional things to consider

vanshb03 commented 6 months ago

Additional things to consider