Giter VIP home page Giter VIP logo

mutetab's Introduction

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.

mutetab's People

Contributors

bitdeli-chef avatar jaredsohn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mutetab's Issues

Firefox port?

I am switching to Firefox for various nerd privacy reasons, is there any chance you would ever create a Firefox port? This is by far the best extension of its kind and there is nothing in the FF universe that comes close.

Feature Request: A list of tabs that have made a sound...

I have been having trouble finding which tab has sent a notification of started playing. I was wondering if a list of the N most recent tabs generating sounds could be kept?

Alos, there have been some tabs that start without be asked that suddenly start playing. I want to track down those tabs so i can avoid those sites or blacklist them.

Stuart

Facebook auto unmutes tab

Hello, I am on Chrome Version 63.0.3239.132 (Official Build) (64-bit) on Mac OS X 10.13.2 and I've noticed only recently that when opening an automuted new tab and going to Facebook, Facebook auto unmutes the tab. Anyone else notice this behavior? Is this a new setting within Facebook?

Please add pause/play function

I love your extension!

A feature that it's missing is, rather than muting (in which videos on the tab keep playing), to actually pause and play the audio from the tab, whether it be a YouTube video or other audio-producing web page. This would be really helpful to have on your single pane design.

Other extensions do this already, but they appear to have disappeared (likely due to recent changes in Chrome).

My use cases is to load up multiple tabs with videos I'm interested in watching, but I can only watch one at a time, and sometimes I want to pause one video, resume another video, then go back to the previous video. Hence the need to not drone on, YouTube just keeps loading video after video, assuming eyeballs are watching when they really are not, and when I come back to the page wanting to resume the video, I find something completely different playing and am forced to backtrack.

suggestion

when you switch to a currently playing tab, (presumably to mute or turn it up/down), it would be nice to have a short list of recenty visited tab (with or without audio) to allow the user to return to where they were. at the very least, save the previous tab, and have a button to go back there.

Mute new tab

Currently I have mute all tabs selected in options. However, when creating a new tab, it is unmuted.

Whitelist

Domains listed in the whitelist continue to stay muted.

amazon.com always muted

I have my setting on mute all tabs with a list for exceptions, but amazon.com always stays muted, however Amazon Music is always unmuted as I like it.

Switch to tab, stays muted - expected that active tab would auto-unmute

If this is not the default behaviour, it should at least be an option to enable:

When a tab is muted, and you switch to that tab, it should be automatically unmute until it becomes a background tab again.

Please make an this option. Maybe it might need a delay timer to mute.

Otherwise, it would be nice to have a one-button unmute-current-tab button.

Doesn't work for cnn.com

I set cnn.com to be on the black list then I goto cnn.com and hit a story and it starts playing unmuted.

Toolbar icon ALWAYS incorrectly identifies the active tab

Whenever I click on the icon in the toolbar, it shows as the "active tab" a tab that I have open in a different window. It never, ever shows the correct active tab, nor even another tab in the active window. I tried clicking on "unmute tab" anyway, but of course it didn't work. The only option that works is "unmute ALL tabs," which pretty well defeats the entire purpose of the plugin. In particular, I whitelisted the website that is actually in the active tab, but it remains muted unless I "unmute all."

Unmuted tab gets muted again when pulled off tab bar

MuteTab Default Muting Behavior: Background tab muted.

  1. Unmute tab, play some video
  2. Tear off the playing tab from Chrome tab into separate window
  3. Tab gets muted again.

Expected behavior: Once unmuted, a tab shouldn't be muted again by the extension.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.