From f49aeff6389c7c1ba7fd10ee89da613ead155785 Mon Sep 17 00:00:00 2001 From: goodtube4u Date: Sat, 14 Sep 2024 08:38:03 +1000 Subject: [PATCH] Minor tidy --- beta/goodtube-embed.user.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/beta/goodtube-embed.user.js b/beta/goodtube-embed.user.js index 46a1735..3a21078 100644 --- a/beta/goodtube-embed.user.js +++ b/beta/goodtube-embed.user.js @@ -325,10 +325,10 @@ } // Turn off autoplay - let goodTube_turnedOffAutoplay = false; + let goodTube_youtube_turnedOffAutoplay = false; function goodTube_youtube_turnOffAutoplay() { // If we've already turned off autoplay, just return - if (goodTube_turnedOffAutoplay) { + if (goodTube_youtube_turnedOffAutoplay) { return; } @@ -343,7 +343,7 @@ if (autoplayButton) { // Set a variable if autoplay has been turned off if (autoplayButton.getAttribute('aria-checked') === 'false') { - goodTube_turnedOffAutoplay = true; + goodTube_youtube_turnedOffAutoplay = true; return; } // Otherwise click the button @@ -363,7 +363,7 @@ // if (autoplayButton) { // // Set a variable if autoplay has been turned off // if (autoplayButton.getAttribute('aria-pressed') === 'false') { - // goodTube_turnedOffAutoplay = true; + // goodTube_youtube_turnedOffAutoplay = true; // return; // } // // Otherwise click the button