Youtube Play Next Queue

Don't like the youtube autoplay suggestion? This script can create a queue with videos you want to play after your current video has finished!

< Spätná väzba na Youtube Play Next Queue

Otázka/komentár

Request Update:

Change


        function isPlayerAvailable() {
            script.ytplayer = getVideoPlayer();
            return script.ytplayer !== null && script.ytplayer.getVideoData().video_id;
        }

to


        function isPlayerAvailable() {
            script.ytplayer = getVideoPlayer();
            return script.ytplayer && typeof script.ytplayer.getVideoData === 'function' && script.ytplayer.getVideoData().video_id;
        }

getVideoData might be assigned after the DOM element is inserted. At that time, error will occur.

CptmathixAutor
§
Pridaný: 02.03.2024

Thank you for reporting, updated!

Pridať odpoveď

Aby ste mohli pridať odpoveď, prihláste sa.