The YouTube Repeat Chrome Extension allows users to automatically repeat YouTube videos based on their preference for each tab. The extension provides a simple interface to enable or disable the repeat functionality directly from the browser's toolbar.
- Repeat YouTube Videos: Automatically repeat videos on YouTube when they finish playing.
- Tab-Specific Settings: Store repeat preferences for individual tabs, which are cleared when the tab is closed.
- User Feedback: Provides tooltips to guide users when the extension cannot be used.
You can install the latest release of the YouTube Repeat extension directly from the Chrome Web Store.
-
Clone the Repository: Clone this repository to your local machine using:
git clone https://github.com/yourusername/youtube-repeat.git
-
Load the Extension:
- Open Chrome and navigate to
chrome://extensions/
. - Enable "Developer mode" by toggling the switch in the top right corner.
- Click "Load unpacked" and select the
youtube-repeat
directory from your local machine.
- Open Chrome and navigate to
- Open YouTube: Navigate to a YouTube video in your browser.
- Enable Repeat: Click the extension icon in the toolbar to open the popup. Check the "Repeat Video" checkbox to enable repeat for the current tab.
- Tooltips:
- If the tab is not a YouTube page, a red tooltip will inform you that the URL doesn't match YouTube.
icons/
: Contains the icon files used by the extension.manifest.json
: The main configuration file for the Chrome extension.background.js
: Handles background tasks, such as clearing storage when a tab is closed.content.js
: Runs on YouTube pages, listening for video end events and checking if the video should repeat.popup.html
: The HTML file for the popup interface.popup.js
: Handles interactions within the popup, such as storing the repeat preference for the current tab.replay.js
: Manages the logic for toggling the loop option on YouTube videos.
Contributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.
For questions or feedback, please contact [email protected].