Skip to content

About

Precise 0–300% volume control for individual Chrome tabs, with optional shared levels. Built with Manifest V3, TypeScript, and Tailwind CSS.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Tab Volume icon

Tab Volume

Give every Chrome tab its own volume.
Turn a tab down to silence, boost it up to 300%, or keep enabled tabs in sync.

CI status Chrome 116+ Manifest V3 TypeScript strict MIT license

Install · Controls · Verification · Architecture


Preview

Dark mode Light mode
Tab Volume popup in dark mode Tab Volume popup in light mode

The popup controls the active tab without displaying its title or accessing the page's contents.

Highlights

  • Precise per-tab control: 0–300% in 1% steps, with a one-click return to 100%.
  • Independent or shared levels: keep each enabled tab separate, or apply one level to all enabled tabs.
  • One-click activation: capture begins only after you click the extension icon on an eligible tab.
  • Playback that stays put: closing the popup or letting the service worker sleep does not stop audio.
  • Predictable mute and cleanup: Chrome tab mute and player mute still work; disabling a tab restores normal playback.
  • Accessible controls: keyboard support, status announcements, and light and dark themes.

Boosting above 100% can distort loud recordings. The extension does not start a paused player or override a site's own volume and mute controls.

Install

Requirements: desktop Chrome 116+ and Node.js 22.12+ for building. The extension itself needs no server or account.

git clone https://github.com/Kaerna-Group/chrome-tab-volume.git
cd chrome-tab-volume
npm ci
npm run check
npm run build
  1. Open chrome://extensions and enable Developer mode.
  2. Choose Load unpacked and select the generated dist directory.
  3. Pin Tab Volume, open a tab playing audio, and click the extension icon.
  4. Move the slider. Use 100% to reset or Disable for this tab to return to normal playback.

For a local ZIP, run npm run package and extract tab-volume-0.1.0.zip before loading it. The ZIP and dist contain the same extension files. After changing the source, rebuild and select Reload on the extension card; click the icon again for tabs you want to control.

Controls

Control Behavior
Volume slider Sets the selected tab from 0% to 300%; a newly enabled independent tab starts at 100%.
100% Resets the selected level to neutral gain without ending capture.
Same volume for enabled tabs Applies the selected level to enabled tabs. Turning it off restores their last independent levels.
Disable for this tab Releases that tab's capture and restores normal playback. Other enabled tabs keep working.

A new tab is never enabled automatically. In shared mode, a newly enabled tab receives the shared level and retains 100% as its initial independent level.

Verification

npm run check runs TypeScript checking, ESLint, 37 unit tests, and the production build. The full local Chrome suite checks popup behavior, capture lifecycle, keyboard controls, themes, audio gain, installation, extension reload, browser restart, and natural service worker sleep.

npm run check
npm run test:browser
npm run test:audio-output
npm run test:real-sites
Suite What it verifies
test:browser 49 main Chrome assertions plus PCM, capture conflict, installation, restart, and worker sleep scenarios.
test:audio-output Windows process-loopback output at 0/50/100/150/200/300%, native mute, and restored playback.
test:real-sites Output from public YouTube and Wikimedia media, including reset, player mute, fullscreen, and disable.

Browser automation needs local Chrome. The two output suites also need Windows 10 2004+ and a .NET 10 SDK; the public-site suite needs network access. They briefly play quiet audio. GitHub Actions runs npm run check on every push and pull request. QA results and manual checks explain what was measured and what remains untested.

For a listening check, run task manual or npm run manual:audio and open http://127.0.0.1:5174/ in Chrome. The page provides HTML audio, HTML video, and Web Audio tones.

Architecture

Chrome action → service worker → tabCapture → offscreen AudioContext
                                         ↳ per-tab GainNode → speakers

The Manifest V3 extension uses TypeScript and Tailwind CSS. It requests only activeTab, tabCapture, offscreen, and storage. It has no broad site permissions, content scripts, remote executable code, or backend service. Only shared-mode settings persist; independent levels last until their capture ends.

The popup, audio engine, and message contracts live in src/popup/, src/offscreen/, and src/shared/. See the implementation progress and the original implementation brief (Russian).

Compatibility

Tab Volume supports regular HTTP/HTTPS tabs in a standard desktop Chrome profile. Incognito, file://, internal browser pages, and DRM-protected media are outside the supported scope. Tabs are not recaptured automatically after an extension update or full browser restart. Subjective listening, physical output-device switching, screen-reader navigation, and long-duration memory behavior still need separate manual assessment.

License

Released under the MIT License.

About

Precise 0–300% volume control for individual Chrome tabs, with optional shared levels. Built with Manifest V3, TypeScript, and Tailwind CSS.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages