Giter VIP home page Giter VIP logo

yt-nonstop's Introduction

I'm NomenNescio. I develop things, because I want them better then other people have done it.
And you're the th visitor of this page.

Developer for Fun

  • ๐Ÿ”ญ Iโ€™m currently working on: EasyDutch
  • ๐ŸŒฑ Iโ€™m currently learning everything I come along and want to do different or nicer.
  • ๐Ÿค” Iโ€™m looking for help with solving nothing.๐Ÿ˜‚
  • ๐Ÿ’ฌ Ask me about anything I maybe can know.
  • ๐Ÿ“ซ How to reach me: Make an issue on my GitHub pages or start here a Discussion
  • โšก Fun fact: Everything done on my GitHub repro's I have learned myself without any prior coding knowledge.
  • My GitHub UnWrapped / From 2023

Nomes77's GitHub Stats

Base Full-year calendar
Habits charts Follow up
Most committed Languages Languages most used
Featured star list languages Achievements Compact Display
Activity Graph last 31 days
Reactions
People reprository
Full historyFull history
Footer-Help-Donate

yt-nonstop's People

Contributors

nomes77 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

Forkers

mrchanshares

yt-nonstop's Issues

Content Security Policy in `script.js`

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.

Playlists issue

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:

  • I've noticed it never happens during playing a video, but when the playlist loads to the next video automatically.
    I.e. everytime a video in the playlist ends, then loads next video, sometimes it opens that video with the "video is paused" dialog.
  • However, this occurs occassionally as well - sometimes it even seems randomly..
    But I've noticed it mostly occurs when letting the playlist run in the background passively for a while.
  • Once a video is played, then YT-Nonstop does its job well again, because then the video never pauses and the dialog doesn't appear.

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!

Addons stopped working in Microsoft Edge

afbeelding

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

https://github.com/BPower0036/YT-Nonstop/blob/0dd0d6003cfa5469a98131011fe5445135cac29e/autoconfirm%26skip.js#L1C1-L16C2

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.