lawfx / youtubenonstop Goto Github PK
View Code? Open in Web Editor NEWAutoclicker for Youtube's latest "feature" - Video paused. Continue watching?
License: MIT License
Autoclicker for Youtube's latest "feature" - Video paused. Continue watching?
License: MIT License
The extension does auto click the continue watching prompt when i have firefox open, but when i minimize it to try and use another program it wont auto click it until i manually open up firefox again and head to the youtube tab
While unpausing video, which was playing in fullscreen, script leaves it minimized (youtube minimize it when prompting for "Are you still watching").
It would be great, if script can remember if the video was playing in fullscreen - and restore it to that state.
/feature_request
Hello,
I would love to see some sort of indication that it picked up the youtube page and that it is working. Now I was thinking, what better way to do this then by an on-off switch. This would also automatically half-fix the other open issue.
Thanks for your work! Saved me a couple of hours doing it myself ;)!
After multiple times clicking on the "are you there?" (by the extension) it just locks the video.
This means the following:
This problem occurs on youtube.com (I don't know if it also occurs on music.youtube.com
I'm using Edge (Chromium based)
Due to a Firefox update that makes browsing private by default, you have to go to add-ons and "allow" YTNS to work in private browsing. Or you have to disable private browsing and run YouTube in a regular window.
Hello!!
I think it is not working on my chrome anymore?
The auto stop pop is still popping up and the music stops playing ..
Thanks!! :)
This add-on stopped working in Firefox version 69 on OSX
Just got video paused while listening to music while the extension was running. I think it might have been fixed.
https://music.youtube.com/watch?v=TUEsD9cgBgk&list=RDAMVMZVkPmLt1qrM
Introduced a listening limit, due to which the PC goes into sleep mode after 12 minutes
Win:11 Firefox:116.0.3 Free Account
PS I listen at night, turn off the monitor and close my eyes to listen to the neural network, there is genuine love in it.
i installed the firefox plugin and it randomly start videos on tabs i had open with video paused, while i am viewing another video on another tab
Oh Google, always tinkering with things that weren't broken! Apparently now using YouTube whilst deliberately not signed in, e.g. to minimise how much the algorithm associates your interest in a video to your actual account, is not the best way to use YouTube! A classic demonstration of "if you're not paying for it, you're the product".
So yeah, they've added a new continuous playback blocker in the form of a pre-load prompt which requires the user to sign in or click "not now". You may have already seen it; here's a screenshot for reference showing what it looks like on the page + the inspector open and drilled-down to the "not now" button itself. I'm not sure if it appears on all auto-played videos or specifically when playing from a playlist.
Interestingly, the button is actually linked to a unique URL which loads as a new page, rather than just dismissing the overlay like the 'Are you still watching?' one. On closer inspection the URL is also slightly different to a standard (in this case playlist) URL. It provides
/watch?v=riM1KZn9q4k&list=PLzZAIuXDlSefsSyidN7d0ezNryXo2wdAW&index=4&pp=QAFIAQ%3D%3D
whereas normally that same video would be at
/watch?v=riM1KZn9q4k&list=PLzZAIuXDlSefsSyidN7d0ezNryXo2wdAW&index=3
i.e. the index is incremented +1 to the video's actual position in the playlist, and there's that extra "pp=..." stuff.
I think it would be great if this new prompt could be dismissed automagically.
I had a look at your autoconfirm.js, I think it should be relatively straight forward to implement, though unfortunately beyond my skillset at the moment (having just recently started tinkering with web UIs).
What do you think?
I don't know when this started as I wasn't listening to playlists for a while, so I only noticed it yesterday, and I also don't know if it's the addon not working or is something else.
Every now and then the playlist will not start playing the next video after moving onto it. When I notice this and open the tab I don't see any popups, just that the next video in the list is loaded but is stopped.
Sometimes it starts playing again if I just mouse over the tab without opening, other times only when I open the tab and mouse over the video, and sometimes only when I actually click on the video.
It also happens if the YouTube tab is the one in focus, but Firefox is not the window in focus.
Browser: Brave.
This only happens if the video has been playing for a while; probably always after the auto-continue logic gets invoked. Even then it doesn't happen every time, but it does happen more than 50% of the time. It happens within ~5-10 seconds of intentionally pausing the video, so I tend to wait after pausing to see if it unpauses, and then I manually pause again, and then it doesn't re-unpause again.
This is a bit of an inconvenience, and my only issue with this extension.
Extension version: 0.7.1
Browser: Mozilla Firefox 72.0.1 (64-bit)
OS: Ubuntu 19.10 (eoan)
This pause button on Picture-in-Picture overlay unpauses immediately upon clicking. Can pause normally after disabling the extension.
https://support.mozilla.org/en-US/kb/about-picture-picture-firefox
Could someone help me with this issue JohnyP36/YT-Nonstop#8 ?
hello
it seems the script is called every 500ms that check if there is a popup.
That seems to be resource intensive.
Could it be in a better way to use less resource ?
Also, i saw a popup that says it will "soon" pause the video if i don't confirm. So, instead of detecting that the video is paused by youtube, could it detect that it will soon pause the video if we don't click, and click on that instead, so no need to unpause the video, just click on that, and also maybe run the script much less than 2 times a second (i guess you do that to quickly unpause the video and not cause interruption ?)
Hello,
I just wanted to ask if there is any tracking included in that add-on?
Kind regards
On Firefox, while playing a video, if you hover the timeline with the cursor and then move a bit above or bellow the timeline before clicking to change the current time, the video pauses. Normal behaviour is to change the current time without pausing.
Regular Youtube, Firefox, Windows 10, pause prompt between videos is appearing again. It looks as if Youtube's software upgrades to empower their monopoly are working. Ad blockers are failing, too. Time to give up on Youtube and just go watch Vimeo.
When the Firefox window uses half the width of a 720p monitor, one can't see if the current page is bookmarked.
It seems to be caused by either popup.html
or the icons. Removing page_action
from the manifest fixes it.
OS: Archlinux
Firefox: 105.0.1
YoutubeNonStop: 0.9.1 and commit ee9cbbb (master as of writing)
Great extension! I love it. Have you tried to get it to also display captions/subtitles from the playing video? I think that would be amazing.
Just installed the extension and it won't un-pause the video if it is in Full-screen, making me have to manually click the prompt.
Currently using version: 0.9.2, on Windows Firefox 119.0.1 (64-bit)
It looks like it turns off repeat playlist on both chrome and opera as i use
Latest version 0.9.1 is activated but does not do anything for youtube.com on Fedora 38 Linux and Firefox 112.0.2 .
Linux Distro: Kubuntu 20.04 LTS
Kernel: Linux 5.4.0 LTS
DE: KDE 5.18.5 LTS
Browser: Firefox 81.0
I've been experiencing issues when using Plasma Integration plugin and YouTube NonStop plugin in conjunction. Plasma Integration plugin works fine for every other function other than pausing YouTube videos. It pauses for a moment and then continues playback.
Steps to reproduce:
Thank you.
Hi,
I check on my phone and this addon is not working on Android (Firefox) :(.
Sorry this was really dumb
june 12th 2020 youtube non stop is not working on windows 10 x64 firefox 77.0.1 x64 addon version 0.8.0
First, I'd just like to say thanks for making this extension. It's such a little thing but oh gods is it obnoxious to put up with, and I'm very glad I didn't have to write it myself :V.
That said, I do have a minor bug report - if you intentionally pause a video and leave it open for later, when it eventually gets the "Continue watching?" popup, the addon auto-clicks and then unpauses the video, letting it play in the background and probably losing your place.
It occurs to me that distinguishing between "paused intentionally" and "paused by addon" is somewhat nontrivial -- maybe just keep a record of whether it was paused a few seconds ago, and reset it to that state? I don't think the popup is so annoying as to show up a few seconds after you demonstrate activity, after all... though maybe there's an edge case with playlists. Mm.
Using the latest version of Firefox for android 8.0. Opening youtube through this, it doesn't work. Because of that, I get not correct answer replies from the website of youtube. Think you can check if you can make it compatible to the mobile API?
Oh, the addons I use;
Audio Only for Youtube
uBlock Origin
Video Background Play Fix
Youtube NonStop
Youtube Music AutoStopBlocker ( To see if it worked anybetter, sadly same issue for that one. )
I had two youtube videos paused in seperate tabs and was listening to youtube music in yet another tab. Suddenly the two paused videos started playing.
I suppose this happened because this add-on detected the discontinuation of the music, but hit play on youtube tabs instead of just starting the music.
I noticed within the last week or so that Streamkeys (which I use for controlling playback of YouTube videos) was immediately unpausing a video after I just paused it. After some investigation, I figured out that it was YouTube NonStop causing the problem since the issue went away once I disabled that extension. I'm using version 0.7.1 of the extension with Chrome 78.0.3904.87 on Windows 7. What information could I provide to help fix this bug?
If one presses pause media button the plugin automatically plays the video.
Steps to reproduce on Firefox (Mobian, Plasma Mobile)
sudo apt install plasma-mobile
sudo apt remove firefox-esr-mobile-config
sudo apt install firefox-esr-mobile-config
honestly maybe it just doesn't work on m.youtube.com ???
I can't even get it installed on my Android. On the previous one thats now dead regardless of new battery i put in or wireless charger i get for it, it used to work fine. As the title says Mozilla or Android or both refuse to install it, saying what was perfectly compatible before is now suddenly no longer compatible. About:config brings up a blank, black page.
Hi,
I think youtube music found it's way to pause the music.
would you mind looking at it again?
thanks!
Some videos have inappropriate marks (even songs). Could you please add a feature to click this button too?
Here is the link to the song in a playlist:
https://www.youtube.com/watch?v=L7yPseSzE4g&list=PLJIFnX6OYQK8LB-ojcaCalIZ0bAa9oCRs&index=78&prefetch=1&has_verified=1&pbjreload=102
Could you please add support for kiwi Browser, it's a Chromium browser which supports extensions.
I am on arch linux with i3wm, and I use https://github.com/altdesktop/playerctl for media control. however, when listening to music, after ~10 seconds of leaving the yt music tab, play/pause and next/prev stop working. when I try to pause the playback, the tab's name changes back to "Youtube Music" from the song's title, but it keeps playing. then when I go back to yt music, and click pause, it pauses then immediately starts playing again. when I disable this add-on, this issue disappears.
firefox version: 93.0
kernel version: 5.14.9-arch2-1
youtube non-stop version: 0.9.0
playerctl version: 2.4.1
Hello, i analysed the youtube code and what is triggering the popup is on this file
https://www.youtube.com/yts/jsbin/desktop_polymer_inlined_html_polymer_flags_v2-vflNwouvq/desktop_polymer_inlined_html_polymer_flags_v2.js
There are multiple ways the popup/pause is triggered,
first there is the checking of the variable window._lact which is the timestamp of the last action. Modifying it regularily will prevent some of the trigger, but there are triggers that are called via ajax.
On the polymer file, there is this function
function(k){if(1==k.nextAddress){a.reset();a.youThereData_=b.configData.youThereData;if(a.youThereData_.reason&&"YOU_THERE_TRIGGER_REASON_3"==a.youThereData_.reason&&!jU())return EP("YOU_THERE_EVENT_TYPE_RATE_LIMITED"),k.return();c=parseInt(a.youThereData_.lactThresholdMs,10);return!B("disable_youthere_lact_threshold_check")&&Sn()+1E3*a.youThereData_.promptDelaySec<c?(EP("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",Ko()),k.return()):0>=a.youThereData_.playbackPauseDelayMs?(ZCa(a),k.return()):xa(k,
a.playerProvider_().getPlayerPromise(),2)}d=k.yieldResult;e=d.getCurrentTime();if(!a.youThereData_)return k.return();g=a.youThereData_.promptDelaySec;a.showWarningJob_=Gn(L,function(){return Ka(function(m){a.showWarningJob_=0;return xa(m,$Ca(a),0)})},1E3*Math.max(g-e,0));
ya(k)}
i think that if you replace it with
function(k){}
it will not be triggered.
However, i don't know how to modify on the fly the script, i tried with tampermonkey to intercept the script and put the script content from the external file to an inline script, but it doesn't work, the code is not executed. Maybe you know how to do that ?
edit: as the script is very big (6mb large), it is very difficult to put breakpoints or modify the script in real time as the browser is struggling a lot or even crashing. I tried the override functionnality in chrome but it make the page load during multiple minutes ...
Please fix it!
You cant see the the continue watching window but the video still stops.
Doesn't function with music.youtube.com
Hi!
When I pause manually it immediately unpauses video. My keyboard does not have media physical keys so clicking pause button is the only option for me. Not sure if that is the cause. So I had to uninstall it from Firefox because I couldn't pause anymore.
Seems like youtube did something recently(1-3 days ago at most) whereby listening to music in a playlist(the Uploads playlist of a channel, to be exact, just in case it matters) while the tab isn't focused will get stuck on the 3rd song on repeat instead of advancing to the next song in the playlist, because for some reason it seems that the playlist frame isn't loading/loaded while tab is unfocused.
So workaround is, I guess, just keeping the tab focused.
I've tested this with the NewRetroWave Uploads playlist and ungoogled-Chromium 77.0.3865.114 (Developer Build) (64-bit) with a bunch of extension that used to work before. (edit: tested .112 and .90, same thing)
Technically it could be the chromium version change/update, but I doubt it. Previously used *.112 and *.111, *.110, *.106, *.98 it's not chromium(see edit)
uBlock Origin development build 1.22.5.1
uBlock Origin Extra 2.86
uMatrix 1.4.0
Sloth 0.1.1
Video Speed Controller 0.5.2.1
YouTube NonStop 0.6.0
HSTS Hacky 0.4.1.0
Ok here some screens on how it looks:
basically, I started(pressed Play) at song name (in playlist) - Mulperi - Fearless
and then I switched tabs(so that tab got unfocused).
Then I waited until the third song started to repeat itself(instead of playing the 4th song in chain). The 3rd song being: Futurecop! - Zen 4040
, and then I clicked that tab to focus it and I took these screenshots:
Screenshot_2019-10-08_01-16-47.png
(^ that screenshots and 2 more looked the same, basically and the last one was: Screenshot_2019-10-08_01-17-01.png ; only important for filename timestamp)
now, because I was compiling in the background it took like 14 sec to load the playlist anew(note: normally this loading wasn't happening before, but youtube changed something! something that makes it not load anything unless the tab is focused! I doubt chromium changed this, it must've been youtube itself)
and this is the last screenshot:
Screenshot_2019-10-08_01-17-05.png
now attaching them:
Screenshot_2019-10-08_01-16-47.png
(yep that's the second song on screen while in this unloaded/unrefreshed state)
Screenshot_2019-10-08_01-17-05.png
(^ here it refreshed itself, I don't press F5 or anything!)
Ok, so to my understanding, because the playlist is white/notloaded like that(in the first screenshot) that's why it keeps repeating the same song. As soon as tab is focused and playlist is refreshing itself/loaded(like in the second screenshot) the next song progresses normally!
Anyway, here's the url to the playlist:
https://www.youtube.com/watch?v=hZDzG4ixXbg&list=UUD-4g5w1h8xQpLaNS_ghU4g&index=19
(notice how, and this was also true before when it was still working, as the playlist progresses you can only see the prior 20 or so songs)
edit: I notice the title of the tab is stuck on the second song! (even though it's the third song playing on repeat) - so this is another hint that the issue is present.
Lines 91 to 101 in 7b6b97b
If using this extension with a bad loading time, you start to get errors that the "Node" is not defined in appObserver.observe
.
Should probably check if it has loaded first, maybe something like this:
function setup() {
if (document.querySelector(appName)) {
observeApp();
return;
}
const observer = new MutationObserver(() => {
if (document.querySelector(appName)) {
observer.disconnect();
observeApp();
}
})
observer.observe(document.documentElement, { childList: true, subtree: true });
}
If I'm logged into my YouTube account, the extension fails to work when the "are you still watching?" messages show up. Checking the console reveals Content Security Policy: The page’s settings blocked the loading of a resource at blob:https://www.youtube.com/ce6dda2e-df36-458d-8d03-7f3c99a30133 (“default-src”).
, and the messages saying that the extension at least partially worked don't show up. The message in question only appears when logged in for some reason. Hopefully this made some sense, this was hard for me to describe without sounding stupid.
If this is the case, then it's not any other extension or JavaScript causing this (yes, I'm the same person who left the 1 star on the firefox addon page, and I did see your feedback), it has to be something else causing it.
when you choose to play a video after the page loads the video pauses
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.