Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ImprovedTube committed May 29, 2024
1 parent f4a4262 commit e57bfc2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js&css/web-accessible/www.youtube.com/appearance.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*------------------------------------------------------------------------------
APPEARANCE
------------------------------------------------------------------------------*/
ImprovedTube.undoTheNewSidebar = function () { try {
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;
Expand All @@ -16,6 +18,7 @@ ImprovedTube.descriptionSidebar = function () { try {
} catch (error) { console.error("tried to move description to the sidebar", error);
}
}
}
/*------------------------------------------------------------------------------
PLAYER
------------------------------------------------------------------------------*/
Expand All @@ -34,7 +37,7 @@ ImprovedTube.playerSize = function () {
style.textContent += "}";

document.body.appendChild(style);
window.dispatchEvent(new Event('resize'));
if (document.documentElement.dataset.pageType === 'video') { window.dispatchEvent(new Event('resize')); }
}
};
/*------------------------------------------------------------------------------
Expand Down

0 comments on commit e57bfc2

Please sign in to comment.