Chrome Extension: Communicating Custom Events from Content Script to React/Next.js Application
I’m developing a Chrome extension that needs to send custom events triggered on the YouTube watch page (e.g., when a video ends) to a React/Next.js web application running on a different domain (localhost during development). The event should trigger specific actions within the web app.