Skip to content

Commit

Permalink
Merge pull request #2430 from raszpl/patch-15
Browse files Browse the repository at this point in the history
Update appearance.js ImprovedTube.descriptionSidebar undefined
  • Loading branch information
ImprovedTube authored Jul 2, 2024
2 parents 8510b2c + b24ede7 commit 41280ef
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions js&css/web-accessible/www.youtube.com/appearance.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
APPEARANCE
------------------------------------------------------------------------------*/
ImprovedTube.undoTheNewSidebar = function () {
if (document.documentElement.dataset.pageType === 'video' && yt) {
try {
yt.config_.EXPERIMENT_FLAGS.kevlar_watch_grid = false;
yt.config_.EXPERIMENT_FLAGS.small_avatars_for_comments = false;
yt.config_.EXPERIMENT_FLAGS.small_avatars_for_comments_ep = false;
yt.config_.EXPERIMENT_FLAGS.web_watch_rounded_player_large = false;
} catch (error) { console.error("can't undo description on the side", error);
}
}
ImprovedTube.descriptionSidebar = function () { try {
yt.config_.EXPERIMENT_FLAGS.kevlar_watch_grid = true;
yt.config_.EXPERIMENT_FLAGS.small_avatars_for_comments = true;
yt.config_.EXPERIMENT_FLAGS.small_avatars_for_comments_ep = true;
} catch (error) { console.error("tried to move description to the sidebar", error);
}
}
}
if (document.documentElement.dataset.pageType === 'video' && yt) {
try {
yt.config_.EXPERIMENT_FLAGS.kevlar_watch_grid = false;
yt.config_.EXPERIMENT_FLAGS.small_avatars_for_comments = false;
yt.config_.EXPERIMENT_FLAGS.small_avatars_for_comments_ep = false;
yt.config_.EXPERIMENT_FLAGS.web_watch_rounded_player_large = false;
} catch (error) { console.error("can't undo description on the side", error); }
}
};

ImprovedTube.descriptionSidebar = function () {
try {
yt.config_.EXPERIMENT_FLAGS.kevlar_watch_grid = true;
yt.config_.EXPERIMENT_FLAGS.small_avatars_for_comments = true;
yt.config_.EXPERIMENT_FLAGS.small_avatars_for_comments_ep = true;
} catch (error) { console.error("tried to move description to the sidebar", error); }
};
/*------------------------------------------------------------------------------
PLAYER
------------------------------------------------------------------------------*/
Expand Down

0 comments on commit 41280ef

Please sign in to comment.