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

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.