background.js
/**
 * Mutes the tab
 * @param {Tab} tab the Tab object (active tab that is running Spotify) to be muted
 */
Mutes the tab
@param {Tab} tab the Tab object (active tab that is running Spotify) to be muted
Mutes the tab @param { Tab } tab the Tab object ( active tab that is running Spotify ) to be muted
function soundOff(tab) {
    if (!tab.mutedInfo.muted) {
        chrome.tabs.update(tab.id, {muted: true}, function(tab) {
            this.muted = true;
            this.updateCount();
        });
    }
}
function soundOff ( tab ) { if ( ! tab . mutedInfo . muted ) { chrome . tabs . update ( tab . id , { muted : true } , function ( tab ) { this . muted = true ; this . updateCount ( ) ; } ) ; } }
Mutes the tab
 @param {Tab} tab the Tab object (active tab that is running Spotify) to be muted
Mutes the tab @param { Tab } tab the Tab object ( active tab that is running Spotify ) to be muted
// If already unmuted, do nothing // using the Tab API, set "muted" property to true // Then update the number of muted ads