From 724d7826f22c517205706de5823369197864149b Mon Sep 17 00:00:00 2001 From: Rasz_pl Date: Fri, 21 Jun 2024 01:33:08 +0200 Subject: [PATCH] Update functions.js subtitles by button turned out dead end --- js&css/web-accessible/functions.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/js&css/web-accessible/functions.js b/js&css/web-accessible/functions.js index d962d5aa5..e7fa681b1 100644 --- a/js&css/web-accessible/functions.js +++ b/js&css/web-accessible/functions.js @@ -654,9 +654,3 @@ ImprovedTube.extractSubscriberCount = function (subscriberCountNode) { ImprovedTube.subscriberCount = subscriberCount; } }; - -// true if any subtitles are available at this moment -// YT doesnt have a function returning status of captions currently loaded, checking button color is the only way I could find :( -ImprovedTube.subtitlesEnabled = function () { - return this.elements.player_subtitles_button?.childNodes?.[0]?.getAttribute('fill-opacity') == 1; -};