Pause YouTube player when page is hidden and resume when it is active again!

Latest Version

Version
0.2.1
Update
September 12, 2023
Size
41.63KiB
Developer
Category
Users
1,000+
Rating
4.31818 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
Storage
Scripting
See more

Auto Pause and Resume for YouTube™ Extension

Features:
- Automatically halts playback in a hidden YouTube tab.
- Automatically resumes playback when the tab regains focus.
- The option to deactivate the functionality via the action button (might have been hidden in the extension menu. If so you can pin the button to the toolbar area).

How it works:
A mini script is injected exclusively on YouTube pages to manage the player's play/pause status based on the visibility of the document. When a YouTube tab is brought to the forefront, the player automatically resumes, akin to hitting the play button. Conversely, when the document becomes hidden, the player automatically pauses, simulating the effect of pressing the pause button.

Sample scenario:
Imagine having multiple YouTube players across various tabs. Only the active player is in playback mode when focused, while all other players pause.

Change Log:
- Version 0.1.1: The extension can now be toggled on and off using the toolbar button, which is particularly handy for listening to YouTube videos in the background.
- Version 0.2.0: The extension now utilizes manifest v3 and requires Chrome version \"95\" or newer for the update to be applied.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Auto Pause and Resume for YouTube\u2122", "description": "Pause YouTube player when page is hidden and resume when it is active again!", "version": "0.2.1", "manifest_version": 3, "permissions": [ "storage", "scripting" ], "host_permissions": [ "*://www.youtube.com/*" ], "background": { "service_worker": "worker.js" }, "action": {}, "content_scripts": [{ "matches": [ "*://www.youtube.com/*" ], "js": ["/data/inject.js"], "run_at": "document_start", "all_frames": false }], "homepage_url": "https://webextension.org/listing/youtube-tools.html?from=auto-pause", "icons": { "16": "/data/icons/16.png", "32": "/data/icons/32.png", "48": "/data/icons/48.png", "64": "/data/icons/64.png", "128": "/data/icons/128.png", "256": "/data/icons/256.png", "512": "/data/icons/512.png" }, "commands": { "_execute_action": {} }}
Read more

How to download and manually install Auto Pause and Resume for YouTube™ extension for Chrome

Looking for a way to install Auto Pause and Resume for YouTube™ extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.

However, you may need to install Auto Pause and Resume for YouTube™ extensions manually, this article outlines two simple methods to effortlessly install Auto Pause and Resume for YouTube™ extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download Auto Pause and Resume for YouTube™ extension and manually install through Drag &Drop

If you ever need to manually install a Auto Pause and Resume for YouTube™ extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.

Step 1: Download the Auto Pause and Resume for YouTube™ Extension by clicking the "Download CRX" button on the website.

Look for the Auto Pause and Resume for YouTube™ extension you wish to install. Go to the website and download the Auto Pause and Resume for YouTube™ extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for Auto Pause and Resume for YouTube™ extension that contains all the data.

Step 2: Extract &Arrange Files

Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.

Step 3: Go to the Chrome Extensions Page

Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.

Step 4: Drag and Drop the Extension

Now, go to the folder where you extracted the Auto Pause and Resume for YouTube™ extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.

Step 5: Complete the Installation

Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.

Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.

Method 2: Download Auto Pause and Resume for YouTube™ extension for Chrome and install in Developer Mode

This is another method to install Auto Pause and Resume for YouTube™ extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.

Step 1: Download the Auto Pause and Resume for YouTube™ extension file

Select and download the Auto Pause and Resume for YouTube™ extension by clicking the 'Download CRX' button on the website.

Step 2: Extract the downloaded contents

Convert the file to a ZIP file if it is in CRX format then extract the Auto Pause and Resume for YouTube™ extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your Auto Pause and Resume for YouTube™ extension running.

Step 3: Open Chrome Extension Setting Page

In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.

Step 4: Enable Developer Mode

After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.

Step 5: Load the Unpacked Extension

Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."

Step 6: Select the Extension Folder

Once the pop-up opens upon clicking Load unpacked, select the Auto Pause and Resume for YouTube™ extension directory and click on the "Select Folder "button.

Step 7: Confirm and Install

After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.

Conclusion

Here we've made a step-by-step guide on How to manually install Auto Pause and Resume for YouTube™ extension in 2 ways. We hope this guide proves helpful.

Similar Extensions

icon

Video Auto Pause Extension · Productivity 1,000+ 41 ★ 96.16KiB

icon

YouTube™ No Buffer - Stop Auto-playing Extension · Accessibility 1,000+ 180 ★ 46.97KiB

icon

YouTube™ Stop Button Extension · Productivity 1,000+ 37 ★ 67.08KiB

icon

Multi-Tab Controller for YouTube Extension · Productivity 1,000+ 66 ★ 97.44KiB

icon

YouTube™ No Annotations Extension · Productivity 1,000+ 16 ★ 35.6KiB

icon

Stop the Music Extension · Productivity 1,000+ 8 ★ 10.84KiB

icon

YouTube Easy Resume Extension · Productivity 1,000+ 14 ★ 55.49KiB

icon

ResumeTube Extension · Social & Communication 1,000+ 11 ★ 63.51KiB

icon

YouStopper for YouTube™ Extension · Fun 1,000+ 43 ★ 51.95KiB

icon

Video Recall for YouTube™ Extension · Productivity 1,000+ 14 ★ 42.41KiB

icon

Video Resumer Extension · Social & Communication 1,000+ 352 ★ 22.39KiB

icon

YouTube Auto Pause Extension · Productivity 1,000+ 3 ★ 271KiB

icon

StoPlay Extension · Productivity 1,000+ 17 ★ 38.86KiB

icon

Noplay Extension · Accessibility 1,000+ 7 ★ 345KiB

icon

Remove YouTube Autoplay Extension · Productivity 1,000+ 26 ★ 1.68MiB

icon

PeepTube Extension · Accessibility 1,000+ 25 ★ 107KiB

icon

Quickview for YouTube Extension · Fun 1,000+ 33 ★ 78.74KiB

icon

AdBlocker for YouTube™ Extension · Productivity 1,000+ 6 ★ 99.87KiB

icon

Delta for YouTube Extension · Social & Communication 1,000+ 10 ★ 678KiB

icon

Permanent Progress Bar for YouTube Extension · Fun 1,000+ 64 ★ 37.82KiB

icon

Youtube™ Controller Extension · Social & Communication 1,000+ 51 ★ 33.73KiB

icon

Video Favorites Extension · Productivity 1,000+ 15 ★ 604KiB

icon

Stop AutoPlay Next for YouTube™ Extension · Productivity 1,000+ 80 ★ 49.88KiB

icon

YouTube Auto Pause Blocker Extension · Fun 1,000+ 131 ★ 64.49KiB

User reviews

icon

Elcoms Khang Jun De (ID: 0000001b64520bd4) Voted 5 ★ - Updated 02/06/2022 Everything I need. An enable/disable button. Auto resumes when looking at the page. Auto pauses when not looking at the page. Edit: Not working when I alt-tab. It worked the first time. Weird. Edit2: Alt-tab sometimes work...

icon

MrManuXZ (ID: 000000b8a3e9369c) Voted 5 ★ - Updated 11/26/2021 ¡Funciona! :).

icon

רפאל rafhi (ID: 000000f20045f8e7) Voted 4 ★ - Updated 08/12/2021 I definitely liked this plugin, but I want to suggest an improvement, The problem is, when the video is finished, and I browse the comments, many times the comments make me switch to other tabs, and then when I return, the plugin plays the video from the beginning, and it removes the red check mark, that I have already watched this video, and may create confusion in the future whether I have already watched this video or not

icon

Luca (ID: 0000007afa3e9d79) Voted 5 ★ - Updated 07/12/2021 it's ok

icon

Nikolay Nikolov (ID: 0000000c36a6e468) Voted 5 ★ - Updated 10/14/2020 It works and does exactly what it says! I'd use this now instead of other similar, because it have easy on/off switch on a button.