Ad-muter Chrome Extension

A Chrome extension that automatically mutes ads on certain websites (Sony LIV) while watching content.

One of the most annoying things while watching sports events in India (and probably elsewhere) is advertisements — especially loud ones.

Imagine your volume is set to 24.

The commentator’s voice sounds perfect. Then suddenly an ad plays with an aggressively loud tune. It technically plays at volume 24 but feels like 34.

Out of a 60-minute watch session, nearly 18–25 minutes can be ads — often repetitive.

Since I watch content on my laptop using a Chromium-based browser, I built an extension that automatically mutes ads whenever it detects an ad wrapper DOM change.

When the DOM switches back to normal content, the tab is automatically unmuted.

Tech stack:

React + Vite + CRXJS.

The logic is straightforward:

  • If an ad wrapper exists and does NOT contain an ad-layer-hidden class → ad is playing → mute tab.
  • When DOM changes and ad-layer-hidden appears → unmute tab.

A MutationObserver watches DOM changes and updates tab audio state via the background service worker.

Project repository:

https://github.com/Vijji04/ad-muter