I am pretty new in this area. I haven't coded much in JavaScript and have only basic knowledge when it comes to build a chrome extension.
I have built a chrome extension that marks YouTube videos according to their category.
For example, if the user selects to search videos related to Education category, the extension would mark them with different background.
The code works great but my problem is when the user scrolls down (to see more videos), the new videos aren't marked (because my script run only when page loads).
Is there a way to listen to this loading event so I can run my function again?
I am using YouTube Data API V3 to get the category of the video.
Thanks in advance