Git Product home page Git Product logo

youtubenonstop's People

Contributors

lawfx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

youtubenonstop's Issues

not working when firefox is minimized?

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

Restoring to fullscreen

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

Add on-off switch on youtube page

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 ;)!

Can't pause a video

After multiple times clicking on the "are you there?" (by the extension) it just locks the video.
This means the following:

  1. the video is playing
  2. the play/pause button is on paused
  3. I can't pause the video; only after reloading the page or by playing the video picture-in-picture

This problem occurs on youtube.com (I don't know if it also occurs on music.youtube.com
I'm using Edge (Chromium based)

Not working anymore on chrome?

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!! :)

randomly starting videos

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

Suggestion: Dismiss new "Get the best YouTube experience" prompt

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.
yt best experience prompt

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?

Playlists stop playing as of recently (Firefox)

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.

Video unpauses right after intentional pause

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.

Using resources ?

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 ?)

Privacy: Any tracking?

Hello,

I just wanted to ask if there is any tracking included in that add-on?

Kind regards

Pauses the video when changing current time while playing

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.

No longer working

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.

Subtitles are not displayed

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.

repeat playlist

It looks like it turns off repeat playlist on both chrome and opera as i use

Doesn't allow video to pause when using Plasma Integration plugin

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:

  1. Install Plasma Integration plugin and YouTube NonStop. Order doesn't affect outcome.
  2. Pair another device to KDE Connect and allow media control.
  3. Play a YouTube video and press the pause button.

Thank you.

not working

june 12th 2020 youtube non stop is not working on windows 10 x64 firefox 77.0.1 x64 addon version 0.8.0

Unpauses intentionally paused videos

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.

Android Firefox app, not working.

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. )

Paused videos start playing

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.

Pause/Unpause Conflict With Streamkeys

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?

Not working on m.youtube.com

Steps to reproduce on Firefox (Mobian, Plasma Mobile)

  1. get Mobian on a Pinephone, VM, Raspberry Pi, etc.
  2. install Plasma Mobile (have not tested on the default DE, phosh, but it's probably the same) sudo apt install plasma-mobile
  3. if you are testing with plasma mobile instead of phosh: log out, select plasma mobile, then log back ing
  4. sudo apt remove firefox-esr-mobile-config
  5. click Firefox
  6. go to the extensions menu
  7. install YoutubeNonStop
  8. close Firefox
  9. sudo apt install firefox-esr-mobile-config
  10. click firefox
  11. go to m.youtube.com
  12. find a playlist
  13. play
  14. wait
  15. notice that the video has paused itself and the button to resume is showing.

honestly maybe it just doesn't work on m.youtube.com ???

will not install in Android Firefox; about:config

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.

youtube music update

Hi,

I think youtube music found it's way to pause the music.
would you mind looking at it again?

thanks!

Kiwi Browser

Could you please add support for kiwi Browser, it's a Chromium browser which supports extensions.

MPRIS issue

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

Better way

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 ...

Can't pause manually

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.

youtube did something - playlist stuck on 3rd song since tab got unfocused

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
Screenshot_2019-10-08_01-16-47
(yep that's the second song on screen while in this unloaded/unrefreshed state)

Screenshot_2019-10-08_01-17-05.png
Screenshot_2019-10-08_01-17-05
(^ 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.

Errors thrown when user have slow loading time / slow connection

function observeApp() {
debug(`Observing ${appName}...`);
appObserver = new MutationObserver((mutations, observer) => {
overrideVideoPause();
});
appObserver.observe(document.querySelector(appName), {
childList: true,
subtree: true
});
}

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 });
}

Extension not working when signed in to YouTube (Firefox)

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.