Skip to content

Commit

Permalink
only setting youtube's dark theme cookie once #2076 ( #2075 #2096 #2084
Browse files Browse the repository at this point in the history
  • Loading branch information
ImprovedTube authored Apr 1, 2024
1 parent e492084 commit 0c1bac2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions js&css/web-accessible/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0c1bac2

Please sign in to comment.