Youtube Auto Pause Youtube Auto Pause

Productivity
Version: 1.4.1
Last Update: 2023-01-31

User Reviews


avatar Quitch
2023-03-15

Almost exactly what I want, except it doesn't work for videos you open in new tabs. Switching to those tabs will play the videos immediately, even if you don't have the resume functionality enabled.

avatar Facundo Zapata
2023-03-05

It works most of the times, but it has some bugs which make every-day use annoying.

avatar 谷口功士
2023-02-25

After looking at dozens of other garbage extensions, I finally found one that actually works. Thanks a lot!

avatar Muhammad Sanjar Afaq
2023-01-23

Doesn't work. Temporary solution (copy and paste for each youtube visit)
```
function toggleYoutubeVideo(value = null)
const videoElements = document.querySelectorAll("video"); // contains false positives too

if (!videoElements?.length) throw new Error("No video elements found");

const mainVideoElement = Array.from(videoElements).find((videoElement) =
videoElement.src.includes("blob:https")
);

if (!mainVideoElement) throw new Error("Main video not found");

switch (value)
case "play":
mainVideoElement.play();
break;
case "pause":
mainVideoElement.pause();
break;

default:
mainVideoElement.getAttribute("paused")
? mainVideoElement.play()
: mainVideoElement.pause();
break;



window.addEventListener("focus", function ()
// document.title = "focused";
toggleYoutubeVideo("play");
);

window.addEventListener("blur", function ()
// document.title = "not focused";
toggleYoutubeVideo("pause");
);
```

avatar Ki !
2022-10-10

useful tool for focusing on what youre doing at the moment

avatar Li Go
2022-06-24

Great. Just what I was looking for. Thx mate.

avatar Shadow
2022-03-04

Awesome but doesn't work with 2+ monitors the window is clearly out of focus and the video still plays ,have to switch between tabs to make it work which defeats the purpose

avatar Max Ol
2021-12-11

Great work!
thx!

avatar Swaraj Adhikary
2021-09-08

This is great for watching tutorials. But sometimes i would want the video to not pause. So it would be nice to have a shortcut to temporarily disable the pause functionality. Otherwise i have to keep pressing the extension icon to uncheck those and check again few minutes later when i need them. Even better would be if it disabled itself for a certain minutes. Then it automatically enables itself. That way i wont have to remember to check those boxes again. Otherwise this extension is great help.

avatar Sharan Bekal
2021-05-08

amazing

Related Extensions