You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/LayoutComponentsFilter.java
+10-6
Original file line number
Diff line number
Diff line change
@@ -454,16 +454,20 @@ public static void hideShowMoreButton(View view) {
454
454
}
455
455
456
456
privatestaticbooleanhideShelves() {
457
-
// If the player is opened while library is selected,
458
-
// then filter any recommendations below the player.
459
-
if (PlayerType.getCurrent().isMaximizedOrFullscreen()
460
-
// Or if the search is active while library is selected, then also filter.
461
-
|| NavigationBar.isSearchBarActive()) {
457
+
// Horizontal shelves are used for music/game links in video descriptions,
458
+
// such as https://youtube.com/watch?v=W8kI1na3S2M
459
+
if (PlayerType.getCurrent().isMaximizedOrFullscreen()) {
460
+
returnfalse;
461
+
}
462
+
463
+
// Must check search bar after player type, since search results
464
+
// can be in the background behind an open player.
465
+
if (NavigationBar.isSearchBarActive()) {
462
466
returntrue;
463
467
}
464
468
465
469
// Do not hide if the navigation back button is visible,
466
-
// otherwise the content shelves in the YouTube Movie/Courses pages is hidden.
470
+
// otherwise the content shelves in the explore/music/courses pages are hidde.
0 commit comments