From bebc7283a0cb99b9ab39ba3fae061938783f8712 Mon Sep 17 00:00:00 2001 From: ImprovedTube Date: Fri, 9 Aug 2024 05:12:48 +0200 Subject: [PATCH] Update appearance.js --- js&css/web-accessible/www.youtube.com/appearance.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js&css/web-accessible/www.youtube.com/appearance.js b/js&css/web-accessible/www.youtube.com/appearance.js index 0c3f7a3c5..6889d7989 100644 --- a/js&css/web-accessible/www.youtube.com/appearance.js +++ b/js&css/web-accessible/www.youtube.com/appearance.js @@ -2,7 +2,8 @@ APPEARANCE ------------------------------------------------------------------------------*/ ImprovedTube.YouTubeExperiments = function () { - if (document.documentElement.dataset.pageType === 'video' && window.yt?.config_?.EXPERIMENT_FLAGS) { + if ((this.storage.undo_the_new_sidebar === "true" || this.storage.description === "sidebar") + && document.documentElement.dataset.pageType === 'video' && window.yt?.config_?.EXPERIMENT_FLAGS) { ImprovedTube.overrideFlag = function (F, V) { // Flag, Value, Handler, Target, Property const H = {