Code Monkey home page Code Monkey logo

audio-only-youtube's Introduction

alt text

Audio Only Youtube (Chrome Extension)

audio-only-youtube chrome extension enables you to disable only video on youtube songs which saves bandwidth when you want to listen songs on youtube.

Note: It doesn't support Youtube live videos.

Installation

You can install extension from here(Chrome Webstore)

Contribute

  1. After cloning the repo, run yarn run start.
  2. Open chrome, go to extensions tab, load unpacked extension and select dev/build directory.
  3. Go to Youtube and see extension in live.

In case you edit code, it would automatically rebuild the extension and after that you need to reload it in the browser.

Thanks to Stefan Ivic for all the icons used in the extension.

Extension Internals

The only reason this extension is able to work is because Youtube serves audio and video streams separately. This extension intercepts response of all the requests on the youtube domains. In the response headers, it checks for Content-Type. If it's an audio file, then it assumes that we have got the audio stream for the video being played. It removes certain range related query parameters in accordance with HTTP RFC's range requests section. Then we set the source of Youtube's video player to audio stream.

Good luck!

audio-only-youtube's People

Contributors

ashish-bansal avatar cuong-now avatar dependabot[bot] avatar dprentis avatar fdesjardins avatar johnagan avatar luker42 avatar max-hk avatar sheldonled avatar zekrom-vale avatar

Watchers

 avatar

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.