Skip to content

Platform Detector

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.

Spotify detector card

  1. Active tab scan: Every time you open the popup, switch tabs, or the URL changes, the extension checks the active tab’s hostname.
  2. 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.
  3. Supported hostnames: music.youtube.com maps to YouTube Music, youtube.com / youtu.be map to YouTube, and spotify.com maps to Spotify. Everything else is treated as unknown.
  4. Title sync: The tab title is mirrored into the popup so you can confirm what track or video is driving the audio processing layer.
  • 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 To prefix 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.
Platform detector showing YouTube active status
YouTube detection highlights the active tab name and exposes YouTube-specific actions.
  1. Start audio sharing on a supported platform.
  2. Browse around—platform detector keeps the popup locked to the streaming tab.
  3. Click < Back To whenever you want to jump straight back to the capture tab.
  4. If you queue something new on a different supported site, hit Use Current to hand off audio sharing without reopening the extension settings.
  • 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!