nomes77 / yt-nonstop 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
Not sure if this is intentional or not, but I noticed the auto-play button on edge was hidden and automatically enabled as opposed to in chrome.
I found a fix to renable the display of the button
by removing the element styles here
But after clicking the toggle it automatically switches off after a couple of seconds.
I noticed this line in the console afterwards:
[YT-Nonstop | 4:03:21 pm] Hide autoplay/autonav, since the button is overriden]
Which led me to remember this extension was installed but the description on the project doesn't specifically mention hiding the auto-play button and force enabling auto-play so I assume it's a bug
Disabling the extension brings back the functionality.
Not super sure if the function of this extension is even required anymore, so I'll probably leave it disabled in edge for the time being.
https://github.com/BPower0036/YT-Nonstop/blob/2d94fc0a8c247f9309a930507e8c2ab4afee96f4/script.js#L17
https://github.com/BPower0036/YT-Nonstop/blob/2d94fc0a8c247f9309a930507e8c2ab4afee96f4/script.js#L19
Causes Content Security Policy issues when manifest_version 3 is used.
The following error is given:
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' blob: filesystem:". Either the 'unsafe-inline' keyword, a hash ('sha256-73i3kEaUxhRyU0LesBtJDZKa7bPMxEn9RHc/MoD/wcc='), or a nonce ('nonce-...') is required to enable inline execution.
If someone sees this and can help me, I would appreciate it.
I tried to fix it but it still doesn't work.
Can some maybe help?
It has to do with the following lines.
function injectScript(YTNonstop, tag) {
var node = document.getElementsByTagName(tag)[0];
var init_inject_script = document.createElement('script');
var run_inject_script = document.createElement('script');
init_inject_script.setAttribute('type', 'text/javascript');
run_inject_script.setAttribute('type', 'text/javascript');
init_inject_script.append(`YTNonstop = ${YTNonstop}()`);
node.appendChild(init_inject_script);
run_inject_script.append("autotube = YTNonstop = new YTNonstop();");
node.appendChild(run_inject_script);
init_inject_script.remove();
}
Hi,
I looked first at https://github.com/lawfx/YoutubeNonStop and have this plugin installed.
Then somehow I came to your github site and it looks like you almost have the same plugin as listed above?
Does this have a good reason?
Is the other repo not accepting pull requests or why do such similar projects exist?
I do wonder which one works better and gets more updates.
Kind regards,
Daniel Oberlechner
As your extension only runs on the domains you have under permission
this line seems unnecessary to me.
And could been removed.
Hey @BPower0036, proud user of the YT-Nonstop extension here.
Seems like YT (or maybe the Edge browser?) changed something lately, which causes the extension to not always work anymore. Although, most of the time it does.
I understand that's a bit vague, so allow me to explain;
Mostly I play music playlists on YT - as a regular user though, I'm not an YT Music or a paying YT user in any way.
Until about 1 or 2 weeks ago, YT-Nonstop always did its job without any problems: I never had to confirm the "video is paused" dialog.
Last week I noticed the music stopped and when I opened the YT window, it had the "video is paused" dialog open.
First thing I checked was if YT-Nonstop was active and running: found out it was (always is :).
Looked up if maybe I had to update either the extension or browser, so I updated everything as well.
But it still occurs:
Tried to reproduce the behaviour, but when manually playing a previous or next video from the list, it doesn't occur.
It always occurs during the (auto) switch to next video in the playlist and after I've left it running for some time.
Considering this behaviour I'm guessing that YT recently built in a some kind check if the user has been inactive for some kind of period; then when it switches to a next vid, plus has registered an x amount of time of passiveness, it has the opportunity to pause the video and loads the dialog..
But that's just guessing ;)
Current info:
Hope this helps because I really like this extension!
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.