Platform Detector
What It Does
Section titled “What It Does”The platform detector watches your active tabs to recognize when you are on YouTube, YouTube Music, or Spotify. It updates the popup with the right logo, title, and quick actions for that site. When nothing supported is open, the section falls back to a neutral state so you know no platform is being processed.

How Detection Works
Section titled “How Detection Works”- Active tab scan: Every time you open the popup, switch tabs, or the URL changes, the extension checks the active tab’s hostname.
- Audio sharing awareness: If audio sharing is already capturing a tab, the detector keeps showing that tab’s details—even if you browse elsewhere—so you keep controlling the stream you are processing.
- Supported hostnames:
music.youtube.commaps to YouTube Music,youtube.com/youtu.bemap to YouTube, andspotify.commaps to Spotify. Everything else is treated asunknown. - Title sync: The tab title is mirrored into the popup so you can confirm what track or video is driving the audio processing layer.
UI Elements
Section titled “UI Elements”- Platform logo & name: Swap dynamically with SVG icons for each service.
- Action buttons: Each platform loads its own button set (romanization toggles, lyric panels, feedback). Buttons activate handler functions specific to that platform the moment detection succeeds.
- Back indicator: When audio sharing is active on another tab, an animated
< Back Toprefix appears. Clicking the platform name snaps Chrome back to the processed tab. - Use Current button: Transfers active audio sharing to the tab you are currently viewing. The button only shows when the current tab is a supported platform and different from the capture tab.
Typical Workflow
Section titled “Typical Workflow”- Start audio sharing on a supported platform.
- Browse around—platform detector keeps the popup locked to the streaming tab.
- Click
< Back Towhenever you want to jump straight back to the capture tab. - If you queue something new on a different supported site, hit Use Current to hand off audio sharing without reopening the extension settings.
Troubleshooting
Section titled “Troubleshooting”- No platform detected: Make sure the active tab URL matches YouTube, YouTube Music, or Spotify.
- Wrong site shown: If audio sharing is enabled, the popup intentionally sticks to the capture tab. Hit Use Current to switch it over to your present tab.
- Button missing: The Use Current button only appears when detection finds a supported platform in the active tab and audio sharing is running elsewhere.
- Stuck display: Close and reopen the popup or toggle the main processing switch to force a fresh detection cycle.
If you like this porject, consider being a supporter! This helps to offset pesky server costs & gets me coffee to deliver features!