From 0c1bac293210d722795a2ac26d974301fa6344f5 Mon Sep 17 00:00:00 2001 From: ImprovedTube Date: Mon, 1 Apr 2024 14:28:47 +0200 Subject: [PATCH] only setting youtube's dark theme cookie once #2076 ( #2075 #2096 #2084 #2134 #2133 ) --- js&css/web-accessible/init.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/js&css/web-accessible/init.js b/js&css/web-accessible/init.js index 1ab918498..7075fe315 100644 --- a/js&css/web-accessible/init.js +++ b/js&css/web-accessible/init.js @@ -93,17 +93,15 @@ ImprovedTube.init = function () { }; window.addEventListener('yt-player-updated', yt_player_updated); - this.channelCompactTheme(); - if (this.storage.theme) { - this.setTheme(); - } this.playerOnPlay(); this.playerSDR(); this.shortcuts(); this.onkeydown(); this.onmousedown(); this.youtubeLanguage(); - + this.myColors(); + this.channelCompactTheme(); + if (ImprovedTube.elements.player && ImprovedTube.elements.player.setPlaybackRate) { ImprovedTube.videoPageUpdate(); ImprovedTube.initPlayer();