Giter Site home page Giter Site logo

rakeshup / youtube-widget Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 27 KB

A chrome extension to control media playing in any YouTube™ tab

Home Page: https://chrome.google.com/webstore/detail/hmmageicpcbobjedojoecplfincecdcb

License: MIT License

HTML 2.94% JavaScript 87.66% CSS 9.40%
content-scripts popup-script chrome-extension-react mutation-observer extension-port

youtube-widget's Introduction

YouTube Widget

Widget to control media playing in any YouTube™ tab

Features:

  • Click on the song name to directly go the tab
  • Quickly play/pause or skip to next video
  • Seek the video to any point using the seek bar
  • Open a YouTube tab right from the Chrome toolbar

Chrome Web Store

https://chrome.google.com/webstore/detail/youtube-widget/hmmageicpcbobjedojoecplfincecdcb

Documentation

This extension makes use of HTML5 video player's APIs to control the media played, runtime ports to pass messages and a popup page written in react.js to give users the control. The various files present are:

  • contentScript.js: has a mutation observer to listen to track name changes in YouTube tab and also manipulates DOM to control the media
  • tabController.js: is tied to the extension and forwards messages to contentScript
  • popupScript.js: sends a message to popupController when user performs any action in the popup page
  • popupController.js: is tied to the extension and forwards messages from popup page to tabController
  • background.js: contains the state of the media, port sink and acts as a bridge between content scripts and popup script
  • index.js: contains the React components which renders the widget in the popup page

Development

# clone
$ git clone https://github.com/RakeshUP/youtube-widget.git

# install the dependencies
$ npm install

# to build run this command from the root directory
$ npm run-script build

License

MIT

youtube-widget's People

Contributors

rakeshup avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

youtube-widget's Issues

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.