Ecksters
Ecksters

Reputation: 1699

Detect if user has muted tab?

Chrome allows users to mute tabs, simply by right-clicking them and hitting Mute Tab. What I'm wondering is if there's a way to detect when a user has muted the tab.

To clarify, I'm wondering if there's a way for a website to detect when I've muted their tab.

Upvotes: 17

Views: 11130

Answers (3)

Seth Wheeler
Seth Wheeler

Reputation: 363

I realize this is an old question, but for anyone who may stumble upon this question in the future, according to Mozilla, it is possible to detect if a tab is muted on most web browsers using javascript APIs, if you are able to use install a browser exxtension.

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/Tabs/MutedInfo

Upvotes: 0

Musa
Musa

Reputation: 426

This is not possible for JavaScript on websites.

But, browser extensions can detect it using the Tabs API.

Learn more: https://developer.chrome.com/extensions/tabs#type-MutedInfo https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/Tabs/MutedInfo

Upvotes: 3

syntagma
syntagma

Reputation: 24314

No, this is not possible in Google Chrome.

Such events can be recorded using low-level APIs expoosed by Chrome but it cannot be done via any of the Web APIs available.

Upvotes: 14

Related Questions