Autoplay endscreen fix

This commit is contained in:
goodtube4u
2025-06-14 16:54:47 +10:00
parent a664da0394
commit d798bbc18c
2 changed files with 14 additions and 4 deletions

View File

@@ -1135,8 +1135,13 @@
// Show the end screen
let hideEndScreen = false;
// If we're viewing a playlist
if (typeof goodTube_getParams['i'] !== 'undefined' || typeof goodTube_getParams['index'] !== 'undefined' || typeof goodTube_getParams['list'] !== 'undefined') {
// If autoplay is on, hide the end screen
if (goodTube_autoplay === 'true') {
hideEndScreen = true;
}
// Otherwise, if we're viewing a playlist
else if (typeof goodTube_getParams['i'] !== 'undefined' || typeof goodTube_getParams['index'] !== 'undefined' || typeof goodTube_getParams['list'] !== 'undefined') {
// Hide the end screen
hideEndScreen = true;

View File

@@ -1135,8 +1135,13 @@
// Show the end screen
let hideEndScreen = false;
// If we're viewing a playlist
if (typeof goodTube_getParams['i'] !== 'undefined' || typeof goodTube_getParams['index'] !== 'undefined' || typeof goodTube_getParams['list'] !== 'undefined') {
// If autoplay is on, hide the end screen
if (goodTube_autoplay === 'true') {
hideEndScreen = true;
}
// Otherwise, if we're viewing a playlist
else if (typeof goodTube_getParams['i'] !== 'undefined' || typeof goodTube_getParams['index'] !== 'undefined' || typeof goodTube_getParams['list'] !== 'undefined') {
// Hide the end screen
hideEndScreen = true;