Skip to content

bug (YouTube): Hide info panels hides panel that should not be hidden #3245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
KobeW50 opened this issue May 29, 2024 · 10 comments · Fixed by #4470
Closed
3 tasks done

bug (YouTube): Hide info panels hides panel that should not be hidden #3245

KobeW50 opened this issue May 29, 2024 · 10 comments · Fixed by #4470
Labels
Bug report Something isn't working

Comments

@KobeW50
Copy link
Contributor

KobeW50 commented May 29, 2024

Bug description

App/Patches info

App: YouTube v19.11.43
Patches: v4.8.2

Bug details

The Hide info panels option (found in Settings > ReVanced > Player) also hides the following section on the page that appears when you search about "suicide".

Screenshot_20240529_150840

Why this is a bug

This panel should not be hidden for 2 reasons:

  1. The Hide info panels option is found in the Player settings, so it should only hide panels in the player.

  2. When the panel (shown above) is hidden, it is impossible to view the search results. So by hiding it, it is only an annoyance rather than a useful feature. At the very least, there should be a warning about this downside in the toggle description.

Error logs

No response

Solution

No response

Additional context

No response

Acknowledgements

  • This issue is not a duplicate of an existing bug report.
  • I have chosen an appropriate title.
  • All requested information has been provided properly.
@KobeW50 KobeW50 added the Bug report Something isn't working label May 29, 2024
@LisoUseInAIKyrios
Copy link
Contributor

Does this issue still show up? I cannot reproduce it (it never shows the "you are not alone" warning).

@KobeW50
Copy link
Contributor Author

KobeW50 commented Aug 25, 2024

The issue still occurs on YT 19.16.39 with patches v4.13.3

I'm guessing the warning only appears in countries where there that suicide hotline functions

@LisoUseInAIKyrios
Copy link
Contributor

LisoUseInAIKyrios commented Aug 25, 2024

I was able to reproduce it on a different account.

It appears filtering just |information_panel.eml hides 2019 disease warnings, and the 'show anyways' is not hidden as desired.

The | is needed for the filter to not hide single_item_information_panel.eml (which incorrectly hides the 'show anyways' button).

Not sure if this change works for other usage of info panel, because these two use cases are all I can find where it pops up.

This setting should also be moved to General since it shows up in the feed and in the player.

Edit: some additional filters are needed to hide some components that are no longer filtered, such as publisher_transparency_panel.eml. there is likely additional unidentified components as well.

@0xrxL
Copy link

0xrxL commented Oct 6, 2024

@KobeW50 It's just a test code but...try it anyway:

Define a variable outside method:

private static int frictionPanelState = 0;

Add the following in the method instead:

//---------------------------------Friction Panel------------------------------------//
        if (combinedTemplates.contains("cell_divider")) {
            frictionPanelState = 1;
        } else if (combinedTemplates.contains("single_item_information_panel")) {
            if (frictionPanelState == 1) {
                frictionPanelState = 2;
            }

            return frictionPanelState == 2;
        } else if (!combinedTemplates.contains("null") &&
                    !combinedTemplates.contains("search_friction")) {
                        frictionPanelState = 0;
        }
        //-----------------------------------------------------------------------------------//

@KobeW50
Copy link
Contributor Author

KobeW50 commented Oct 6, 2024

It's just a test code but...try it anyway:

Due to time contraints and lack of knowledge I'm unable to make my own patches to test with. Thank you for your efforts. Sorry

@0xrxL
Copy link

0xrxL commented Oct 6, 2024

It's just a test code but...try it anyway:

Due to time contraints and lack of knowledge I'm unable to make my own patches to test with. Thank you for your efforts. Sorry

It works on my side anyway...

This is how it appears in the search view

Image

inotia00 added a commit to inotia00/revanced-patches that referenced this issue Feb 13, 2025
@LisoUseInAIKyrios
Copy link
Contributor

I cannot get this warning to show anymore.

@KobeW50
Copy link
Contributor Author

KobeW50 commented Feb 17, 2025

It still shows for me on 19.47.53

@LisoUseInAIKyrios
Copy link
Contributor

I was able to reproduce only once then not again. It should be fixed with 4ac8854 but I cannot completely confirm.

@LisoUseInAIKyrios LisoUseInAIKyrios linked a pull request Feb 18, 2025 that will close this issue
1 task
@LisoUseInAIKyrios LisoUseInAIKyrios removed a link to a pull request Feb 19, 2025
1 task
@LisoUseInAIKyrios LisoUseInAIKyrios linked a pull request Feb 25, 2025 that will close this issue
1 task
@KobeW50
Copy link
Contributor Author

KobeW50 commented Mar 3, 2025

Thank you. The fix works

MasterZeeno pushed a commit to MasterZeeno/Zee-Lite-Modules that referenced this issue Mar 26, 2025
Patch version: v5.4.1

# Changelogs

- bumped YouTube base to 19.44.39 (STABLE)
- Also providing Alternative updates for 19.16.39 (STABLE) & 20.06.42 (BETA)
- Make sure to read this before using 20.06.42 : inotia00/ReVanced_Extended#2717

- chore(YouTube - Hide ads): Remove duplicated ads filter
- chore(YouTube - Inclusive span): Update SpanType
- chore(YouTube - Miniplayer): Move Miniplayer from PreferenceScreen General to PreferenceScreen Player inotia00/ReVanced_Extended#2725

- chore(YouTube - Settings): Change default value
- chore(YouTube - Spoof streaming data): Change the **[document link](https://github.com/inotia00/scrape-youtube-termux)** for issuing PoToken
- feat(YouTube): Add patch Hide accessibility controls dialog inotia00/ReVanced_Extended#2756

- feat(YouTube): Add patch Disable resuming Miniplayer on startup inotia00/ReVanced_Extended#469

- feat(YouTube - Change start page): Add more start pages **[#136](inotia00/revanced-patches#136
- feat(YouTube - Description components): Remove setting Title in video description panel (No more necessary)
- feat(YouTube - Hide action buttons): Add setting Hide action button by index, Remove patch option Hide action buttons by index
- feat(YouTube - Hide ads): Add setting Hide end screen store banner **[#131](inotia00/revanced-patches#131
- feat(YouTube - Hide feed flyout menu): Add setting Feed flyout menu filter type
- feat(YouTube - Hide layout components): Add setting Account menu filter type (Close inotia00/ReVanced_Extended#2574)
- feat(YouTube - Navigation bar components): Add user dialog message
- feat(YouTube - Seekbar components): Add option to use custom seekbar accent color (For YouTube 19.25.39+, Close inotia00/ReVanced_Extended#2738)

- feat(YouTube - Spoof streaming data): Change Default client to iOS TV inotia00/ReVanced_Extended#2777

- fix(YouTube): Playback speed sometimes changes to 1.0x in PiP mode (Unpatched YouTube bug)
- fix(YouTube - Change live ring click action): Cannot play the playlist
- fix(YouTube - Change live ring click action): Channel does not open when the live ring of Shorts live stream is clicked
- fix(YouTube - Change live ring click action): Check more information for the guarantee of the more accurate operation of the patch
- fix(YouTube - Change live ring click action): Sometimes channel opens even if the live ring is not clicked
- fix(YouTube - Change live ring click action): Update patch limitation
- fix(YouTube - Custom Shorts action buttons): Exception is thrown when patching with Revancify inotia00/ReVanced_Extended#2773
- fix(YouTube - Hide ads): New types of ads are shown ReVanced/revanced-patches#4352
- fix(YouTube - Hide feed components): Podcasts subpage is empty when Hide carousel shelves is on

- fix(YouTube - Hide feed components): Hide Playables not working inotia00/ReVanced_Extended#2485

- fix(YouTube - Hide feed components): Hide category bar in feed does not work on the Subscriptions tab inotia00/ReVanced_Extended#2751

- fix(YouTube - Hide feed components): Hide community posts in subscriptions not working inotia00/ReVanced_Extended#2729

- fix(YouTube - Hide feed components): Hide community posts not working
- fix(YouTube - Player components): Show anyway button on the search results is hidden when Hide info panels is turned on ReVanced/revanced-patches#3245
- fix(YouTube - Remove background playback restriction): Play/Pause button not working in PiP mode (Unpatched YouTube bug) inotia00/ReVanced_Extended#2764
- fix(YouTube - Shorts components): When Shorts repeat state is AutoPlay, HUD is hidden (YouTube 19.34+) ReVanced/revanced-patches#4426

- fix(YouTube - Translations): Patch exception thrown when the patch option String resources to keep is empty inotia00/ReVanced_Extended#2778
- feat(Universal): Add patch Spoof Wi-Fi connection inotia00/ReVanced_Extended#2757
- fix(GmsCore support): Add missing permissions and intents
- fix(GmsCore support): Remove unnecessary provider hooking

- Checkout this site to read more about previously added changes: https://github.com/inotia00/revanced-patches/releases

# Important Announcement

- The playback issue on YouTube has been fixed with the Spoof streaming data.
- If you have playback issues, turn on the settings in the following path:
Settings > ReVanced Extended > Miscellaneous > Spoof streaming data > Enable Spoof streaming Data toggle > Set it to IOS TV or IOS (potoken) to prevent any side-effects

**Thanks to inotia00**
MasterZeeno pushed a commit to MasterZeeno/Zee-Lite-Modules that referenced this issue Mar 26, 2025
Patch version: v5.4.1

# Changelogs

- bumped YouTube base to 19.44.39 (STABLE)
- Also providing Alternative updates for 19.16.39 (STABLE) & 20.06.42 (BETA)
- Make sure to read this before using 20.06.42 : inotia00/ReVanced_Extended#2717

- chore(YouTube - Hide ads): Remove duplicated ads filter
- chore(YouTube - Inclusive span): Update SpanType
- chore(YouTube - Miniplayer): Move Miniplayer from PreferenceScreen General to PreferenceScreen Player inotia00/ReVanced_Extended#2725

- chore(YouTube - Settings): Change default value
- chore(YouTube - Spoof streaming data): Change the **[document link](https://github.com/inotia00/scrape-youtube-termux)** for issuing PoToken
- feat(YouTube): Add patch Hide accessibility controls dialog inotia00/ReVanced_Extended#2756

- feat(YouTube): Add patch Disable resuming Miniplayer on startup inotia00/ReVanced_Extended#469

- feat(YouTube - Change start page): Add more start pages **[#136](inotia00/revanced-patches#136
- feat(YouTube - Description components): Remove setting Title in video description panel (No more necessary)
- feat(YouTube - Hide action buttons): Add setting Hide action button by index, Remove patch option Hide action buttons by index
- feat(YouTube - Hide ads): Add setting Hide end screen store banner **[#131](inotia00/revanced-patches#131
- feat(YouTube - Hide feed flyout menu): Add setting Feed flyout menu filter type
- feat(YouTube - Hide layout components): Add setting Account menu filter type (Close inotia00/ReVanced_Extended#2574)
- feat(YouTube - Navigation bar components): Add user dialog message
- feat(YouTube - Seekbar components): Add option to use custom seekbar accent color (For YouTube 19.25.39+, Close inotia00/ReVanced_Extended#2738)

- feat(YouTube - Spoof streaming data): Change Default client to iOS TV inotia00/ReVanced_Extended#2777

- fix(YouTube): Playback speed sometimes changes to 1.0x in PiP mode (Unpatched YouTube bug)
- fix(YouTube - Change live ring click action): Cannot play the playlist
- fix(YouTube - Change live ring click action): Channel does not open when the live ring of Shorts live stream is clicked
- fix(YouTube - Change live ring click action): Check more information for the guarantee of the more accurate operation of the patch
- fix(YouTube - Change live ring click action): Sometimes channel opens even if the live ring is not clicked
- fix(YouTube - Change live ring click action): Update patch limitation
- fix(YouTube - Custom Shorts action buttons): Exception is thrown when patching with Revancify inotia00/ReVanced_Extended#2773
- fix(YouTube - Hide ads): New types of ads are shown ReVanced/revanced-patches#4352
- fix(YouTube - Hide feed components): Podcasts subpage is empty when Hide carousel shelves is on

- fix(YouTube - Hide feed components): Hide Playables not working inotia00/ReVanced_Extended#2485

- fix(YouTube - Hide feed components): Hide category bar in feed does not work on the Subscriptions tab inotia00/ReVanced_Extended#2751

- fix(YouTube - Hide feed components): Hide community posts in subscriptions not working inotia00/ReVanced_Extended#2729

- fix(YouTube - Hide feed components): Hide community posts not working
- fix(YouTube - Player components): Show anyway button on the search results is hidden when Hide info panels is turned on ReVanced/revanced-patches#3245
- fix(YouTube - Remove background playback restriction): Play/Pause button not working in PiP mode (Unpatched YouTube bug) inotia00/ReVanced_Extended#2764
- fix(YouTube - Shorts components): When Shorts repeat state is AutoPlay, HUD is hidden (YouTube 19.34+) ReVanced/revanced-patches#4426

- fix(YouTube - Translations): Patch exception thrown when the patch option String resources to keep is empty inotia00/ReVanced_Extended#2778
- feat(Universal): Add patch Spoof Wi-Fi connection inotia00/ReVanced_Extended#2757
- fix(GmsCore support): Add missing permissions and intents
- fix(GmsCore support): Remove unnecessary provider hooking

- Checkout this site to read more about previously added changes: https://github.com/inotia00/revanced-patches/releases

# Important Announcement

- The playback issue on YouTube has been fixed with the Spoof streaming data.
- If you have playback issues, turn on the settings in the following path:
Settings > ReVanced Extended > Miscellaneous > Spoof streaming data > Enable Spoof streaming Data toggle > Set it to IOS TV or IOS (potoken) to prevent any side-effects

**Thanks to inotia00**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug report Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants