An open API service indexing awesome lists of open source software.

https://github.com/anuragparashar26/focus-flick

Focus Flick is a chrome extension that automatically pauses YouTube videos when you switch tabs or windows, and resumes playback when you return
https://github.com/anuragparashar26/focus-flick

auto-pause chrome-extension javascript productivity youtube

Last synced: about 1 month ago
JSON representation

Focus Flick is a chrome extension that automatically pauses YouTube videos when you switch tabs or windows, and resumes playback when you return

Awesome Lists containing this project

README

          

# 🎯 Focus Flick

**Focus Flick** is a lightweight Chrome extension that enhances your YouTube watching experience by automatically pausing videos when you switch tabs or windows, and resuming them when you return. Perfect for staying focused and never missing a second of your favorite content.

---

## ✨ Features

- πŸ”„ **Auto Pause/Resume**
Pauses YouTube videos when the tab or window loses focus, and resumes playback when you come back.

- 🧠 **Focus Control Toggle**
Quickly enable or disable the extension via a simple popup interface.

- ⚑ **Instant Activation**
Works on new YouTube tabs without needing a refresh.

---

## πŸ›  Installation

1. **Clone or Download** this repository.
```
git clone https://github.com/anuragparashar26/focus-flick.git/
```
2. Open Chrome and navigate to: `chrome://extensions/`
3. Enable **Developer mode** (top right toggle).
4. Click **Load unpacked** and select the directory downloaded/cloned directory.
---

## ▢️ Usage

1. Open any [YouTube](https://www.youtube.com) video.
2. Click the **Focus Flick** extension icon in the Chrome toolbar.
3. Use the toggle in the popup to enable or disable auto-pause/resume.

---

## πŸ‘¨β€πŸ’» File Structure and Overview

```
focus-flick/
β”œβ”€β”€ README.md
β”œβ”€β”€ background.js -Injects content script into appropriate YouTube tabs
β”œβ”€β”€ content.js -Handles pause/resume logic on YouTube videos
β”œβ”€β”€ icons/ -Contains icon assets for the extension
β”‚ β”œβ”€β”€ icon128.png
β”‚ └── icon48.png
β”œβ”€β”€ manifest.json -Chrome extension configuration
β”œβ”€β”€ popup.html -UI for toggle
└── popup.js -Toggle logic for enabling/disabling the feature
```
---

## πŸ” Permissions Used

- `storage`: Save the extension’s toggle state.
- `activeTab`: Access the current active YouTube tab.
- `scripting`: Inject the content script dynamically.

---

## πŸ“¬ Feedback & Contributions

Feel free to open issues or submit pull requests. Contributions are welcome!