Giter Site home page Giter Site logo

adarshherohoo / youtube-video-pauser Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5 KB

A Chrome extension that automatically pauses YouTube videos when you switch applications or tabs, ensuring you never miss a moment.

JavaScript 87.33% HTML 12.67%

youtube-video-pauser's Introduction

Youtube Video Pauser

A Chrome extension that automatically pauses YouTube videos when you switch applications or tabs, ensuring you never miss a moment.

Features

  • Automatically pauses YouTube videos when switching to a different application.
  • Resumes playing the video when you return to the YouTube tab.
  • Pauses YouTube videos when switching between Chrome tabs.

Installation

  1. Clone or download this repository.
  2. Open Chrome and go to chrome://extensions/.
  3. Enable "Developer mode" using the toggle in the top right corner.
  4. Click on "Load unpacked" and select the directory where you downloaded/cloned this repository.

Usage

  1. Once the extension is installed, click the extension icon in the Chrome toolbar to enable it.
  2. Play any YouTube video.
  3. Switch to a different application or a different Chrome tab.
  4. The YouTube video will automatically pause.
  5. Switch back to the YouTube tab or Chrome window to resume playing the video.

How It Works

  • The extension listens for window focus changes and tab activation events.
  • When the Chrome window loses focus or you switch to a different tab, the extension pauses the YouTube video.
  • When you return to the Chrome window or the YouTube tab, the extension resumes the video playback.

Contributing

Contributions are welcome! Please fork the repository and create a pull request with your changes.

youtube-video-pauser's People

Contributors

adarshherohoo 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.