MuteTab Chrome extension
JavaScript Other
Latest commit fded8c6 Nov 20, 2016 @jaredsohn Update version to 3.0.3
Permalink
Failed to load latest commit information.
build Don't mute if mute background tabs is set and tab is moved to new window Nov 20, 2016
lib
scripts MuteTab 3.01 Jul 22, 2016
src/js Don't mute if mute background tabs is set and tab is moved to new window Nov 20, 2016
.babelrc MuteTab 3.01 Jul 22, 2016
.eslintignore MuteTab 3.01 Jul 22, 2016
.eslintrc Update version to 3.0.2; update eslint rules and make fixes; stop shi… Nov 20, 2016
LICENSE-fasttabswitcher MuteTab 3.x Jul 2, 2016
README.md MuteTab 3.x Jul 2, 2016
TODO MuteTab 3.x Jul 2, 2016
manifest.json Update version to 3.0.3 Nov 20, 2016
package.json Update version to 3.0.3 Nov 20, 2016

README.md

MuteTab

MuteTab is a Chrome extension that gives you enhanced control over your browser's sound. Features include mute by default, blacklists, and an experimental music ducking feature. More info at mutetab.com.

Installing from Source

  • Visit chrome://extensions/
  • Ensure Developer mode is checked
  • Click Load unpacked extension...
  • Locate and select the directory with the manifest.json file in it

Hacking

You must have Node.js installed to build the extension.

  1. Install the dependencies: npm install
  2. Build the extension from src/js into build/js:

    • Build once: npm run build

    • Build continuously as files change: npm start

The entry point for the extension's background page is src/js/background.js. It is responsible for communicating the list of open tabs to the client when requested.

The entry point for the extension's front-end is src/js/client.jsx. The client is written using React.

Both these files are bundled using Browserify (running a JSX transform for the client scripts) into build/js. At runtime, the extension uses only files from build and vendor.

Tests

Run the test suite by enabling the extension and going to chrome-extension://jopkojhkkeglfnolgoojbfdoimpnllfd/build/html/test.html. Note that running the tests will clear out your preferences and that you will need to click 'Restore defaults' or restart the extension before using it again. (There are some hidden settings that will cause the extension to behave abnormally.)

Licensing

This code is licensed MIT.

The structure and UI started as a fork of Chrome Fast Tab Switcher, which is Copyright (c) 2014 Michelle Tilley under the MIT license.

It also includes a large amount of Streamkeys code (currently unused) which is Copyright (c) 2014 Alex Gabriel under the MIT license.