Pause YouTube player when page is hidden and resume when it is active again!
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.
Latest reviews
- (2022-02-06) Elcoms Khang Jun De: 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...
- (2021-11-26) MrManuXZ: ¡Funciona! :).
- (2021-08-12) רפאל rafhi: 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
- (2021-07-12) Luca: it's ok
- (2020-10-14) Nikolay Nikolov: 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.
- (2020-02-29) Charith Gangoda: f no absolutely useless
- (2019-05-31) Cozy Coat: f no absolutely useless
- (2019-05-09) Sgt: This Extension works like a charm. I especially love the fact that it pauses only when switching between tabs of the same Chrome window. I often type or work in a separate window and can still have a youtube video play in another. I would suggest an improvement. I personally like the auto-pause, I sometimes find the auto-resume to be bothersome. It would be useful to have an option to select which ones you choose to activate. That would make this Extension even better.
- (2018-12-09) Disciple de Jésus-Christ: marche pas
- (2018-11-29) François: C'est parfaitement ce que je recherchais ; je peux uniquement me focaliser sur un seul onglet YouTube et sans y être ! Il suffit d'épingler l'onglet qu'on veut garder actif et le tour est joué !
- (2018-10-14) Rainbow Warrior Princess: Autopause does work when switching to another tab, but when switching back, the video is still paused instead of playing again / continuing with the video playback.
- (2018-07-20) MissionAccomplished: finally a plugin that actually works on youtube again in regards to pausing and playing when switching tabs. The low number of downloads and reviews always make me wary but looking at the contents of the plugin itself I dont see anything malicious unlike some other similar youtube plugins that dont even work. So thank you dev, it is much appreciated.
- (2018-07-01) Мастер Дарий: Not work :disable and re-enable the extension from the toolbar button.
- (2018-03-12) Jaun Mauro Fernandez: Does the job