Skip to content
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

bug(YouTube/Toolbar components) : Hide trending searches doesn't work #1993

Closed
5 tasks done
Aryan-Chauhan opened this issue May 11, 2024 · 25 comments
Closed
5 tasks done
Labels
Bug report Something isn't working

Comments

@Aryan-Chauhan
Copy link

Aryan-Chauhan commented May 11, 2024

NOTE : Check all comments for new information.

Type

Cosmetic

Tools used

Revancify

Application

YT v19.16.39

Patches v4.8.0-dev.4

Integrations v1.9.0-dev.3

Bug description

Hide Trending Searches doesn't work if watch history has zero videos.

To make it work, I enabled my watch history, then I watched one video, then disabled watch history. After doing this, Hide Trending Searches immediately starts working perfectly. It has been like this for months.

But this comes with a cost. With 1 video in your watch history, Home Feed suggestions come back for you.

So, it is requested to make Hide Trending Searches work even if user's watch history has zero videos.
Screenshot_2024-05-11-12-05-17-63_a9acfd2263b6b7a65bf2540b0d9449ca
Screenshot_2024-05-11-12-05-52-44_a9acfd2263b6b7a65bf2540b0d9449ca

Error logs

No logs.

Solution

The functionality of Hide Trending Searches shouldn't depend on the number of videos in user's watch history.

Additional context

No additional context.

Device Environment

Realme 7 Pro running on Android 12 (skin name is Realme UI 3.0).

Acknowledgements

  • This issue does not reproduce on unpatched YouTube or YT Music.
  • This issue is not a duplicate of an existing bug report.
  • I have chosen an appropriate title.
  • All requested information has been provided properly.
  • I have written the title and contents in English.
@Aryan-Chauhan Aryan-Chauhan added the Bug report Something isn't working label May 11, 2024
@inotia00
Copy link
Owner

Hide trending search setting hides the search term suggestion contains the Fire icon.

All other search terms are not hidden.

@inotia00 inotia00 closed this as not planned Won't fix, can't repro, duplicate, stale May 11, 2024
@Aryan-Chauhan
Copy link
Author

Aryan-Chauhan commented May 19, 2024

Hide trending search setting hides the search term suggestion contains the Fire icon.

All other search terms are not hidden.

If I open another issue like Improve Hide Trending Searches to hide all type of trending searches, will you consider it or not interested?

@Aryan-Chauhan
Copy link
Author

Aryan-Chauhan commented May 19, 2024

Just now, I noticed this.
Hide Trending Searches is just hiding the fire icon & not the whole search suggestion. Compare these two screenshots.

BTW, my watch history & search history is disabled, and both have zero items in them.

Same issue on ReVanced's repository : ReVanced/revanced-patches#873

When Hide Trending Searches is disabled:
Screenshot_2024-05-19-06-54-39-73_fe557b5c831afa8eecca413bd340ebe7.jpg

When Hide Trending Searches is enabled:
Screenshot_2024-05-19-06-55-01-06_fe557b5c831afa8eecca413bd340ebe7.jpg

So, it is requested to make Hide Trending Searches such that it can hide all type of context-less recommended searches. Of course, when the user types something, recommendations should show (these can be called as contextful searches).

Untitled.png

@inotia00
Copy link
Owner

inotia00 commented May 19, 2024

It makes sense.
It seems that the patch no longer works due to server-side changes.
Hide trending searches setting will be removed in the next release.

@inotia00 inotia00 reopened this May 19, 2024
@inotia00 inotia00 changed the title bug (YT) : Hide Trending Searches doesn't work if watch history has zero videos. bug(YouTube/Toolbar components) : Hide trending searches doesn't work May 19, 2024
inotia00 added a commit to inotia00/revanced-integrations that referenced this issue May 19, 2024
@Aryan-Chauhan
Copy link
Author

Thanks!

Any chance of making it work in accordance to the new server-side changes?

@inotia00
Copy link
Owner

When I checked the bytecode, I couldn't make it support the new server-side changes right now.

Hide trending searches setting will be added again when server-side changes are supported in the future.
Until then the Hide trending searches setting will be removed.

@YT-Advanced
Copy link

When I checked the bytecode, I couldn't make it support the new server-side changes right now.

Hide trending searches setting will be added again when server-side changes are supported in the future.
Until then the Hide trending searches setting will be removed.

In the past, I have filtered this new "suggestion searches" via "yt_outline_new_search_black_24" drawable inside resources. However, it have some layout problem so I decided to reject this changes

@inotia00
Copy link
Owner

Removing setting is not a big deal until server-side changes are supported.
Rather, not removing setting that is not working properly causes more confusion to users.

@YT-Advanced
Copy link

YT-Advanced commented May 19, 2024

Additational, trending search setting hides the search suggestion with the Fire icon, not other search suggestion type so I think you should close this issues without removing patch

@YT-Advanced
Copy link

Rather, not removing setting that is not working properly causes more confusion to users.

The patch is still worked, it did its jobs (hide searches with Fire icon)

@inotia00
Copy link
Owner

inotia00 commented May 19, 2024

Additational, trending search setting hides the search suggestion with the Fire icon, not other search suggestion type so I think you should close this issues without removing patch

nah.. refer it

Just now, I noticed this.
Hide Trending Searches is just hiding the fire icon & not the whole search suggestion. Compare these two screenshots.

#1993 (comment)

Hide trending searches setting changes fire icon to search icon instead of hiding it

@YT-Advanced
Copy link

Hide trending searches setting changes fire icon to search icon instead of hiding it

Ah got it

@inotia00
Copy link
Owner

reflected in revanced-patches-4.8.3

@Aryan-Chauhan
Copy link
Author

Aryan-Chauhan commented Jun 14, 2024

Hide trending searches setting will be added again when server-side changes are supported in the future.
Until then the Hide trending searches setting will be removed.

This means that there is a possibility of this feature returning in the future (if inotia00, anddea, YT-Advanced, ReVanced Team or other devs figures out how to make it work).

I think, for this reason alone, this issue should be kept open.

Keeping the issue open gives the users hope that this Tier-1 feature may return someday.

@0xrxL
Copy link

0xrxL commented Aug 6, 2024

So the problem happens when the searchbar is empty and the suggested results (with zoom lens icon) are visible. In this case it should be possible to add a further check to hide all the results dinamically, once the searchbar is empty.

@inotia00 the removed patch allow to hide everything together in 3 steps (1 for every icon), just the empty searchbar check need to be implemented.

@Aryan-Chauhan
Copy link
Author

Aryan-Chauhan commented Aug 6, 2024

These trending searches doesn't show when you have 1 or 1+ videos in your watch history.

They do show when you have 0 videos in your watch history.

So, is there any way to "spoof" the search page making it think that the user has some videos in their watch history? That could make hiding it possible, even if user has 0 videos in watch history in reality.

@0xrxL
Copy link

0xrxL commented Aug 6, 2024

These trending searches doesn't show when you have 1 or 1+ videos in your watch history.

They do show when you have 0 videos in your watch history.

So, is there any way to "spoof" the search page making it think the user has some videos in their watch history? That could make it possible.

Unfortunately I can't reproduce this issue on my side. I got always 0 trending results, also with an empty history list.

In the opposite case, I would have already tried to solve the problem.

@0xrxL
Copy link

0xrxL commented Aug 6, 2024

Anyway...try to patch the latest RvX version with the removed patch, and check if the bug has been solved. A similar problem happened to me 4 months ago, and solved itself after some weeks.

@Aryan-Chauhan
Copy link
Author

Aryan-Chauhan commented Aug 6, 2024

Hmm.

BTW, people who doesn't add account to RVX app also don't get Trending Searches in their search page.

Any way to spoof that?

@Aryan-Chauhan
Copy link
Author

Anyway...try to patch the latest RvX version with the removed patch, and check if the bug has been solved. A similar problem happened to me 4 months ago, and solved itself after some weeks.

Using these patches + 0 videos in watch history + watch history paused.

Screenshot_2024-08-06-16-45-48-91_f22faf49515899f9781ec174a4d85388.jpg

Getting this:

Screenshot_2024-08-06-16-47-01-30_f22faf49515899f9781ec174a4d85388.jpg

@0xrxL
Copy link

0xrxL commented Aug 6, 2024

Hmm.

BTW, people who doesn't add account to RVX app also don't get Trending Searches in their search page.

Any way to spoof that?

If there is a way, I don't actually know how to achieve it. But it's pointless, due to others (and more easier) way to fix it. If the bug still exists on last version of RvX, a check on the searchbar digited text could be done.

@0xrxL
Copy link

0xrxL commented Aug 6, 2024

Anyway...try to patch the latest RvX version with the removed patch, and check if the bug has been solved. A similar problem happened to me 4 months ago, and solved itself after some weeks.

Using these patches + 0 videos in watch history + watch history paused.

Screenshot_2024-08-06-16-45-48-91_f22faf49515899f9781ec174a4d85388.jpg

Getting this:

Screenshot_2024-08-06-16-47-01-30_f22faf49515899f9781ec174a4d85388.jpg

You are using a version without patch (has been removed by inotia 2 months ago, waiting for the A/B test to finish).

You should repatch the last RvX version, but with the removed patch.

@0xrxL
Copy link

0xrxL commented Dec 11, 2024

@inotia00 ReVanced/revanced-patches#4101

@0xrxL
Copy link

0xrxL commented Dec 11, 2024

@inotia00 ReVanced/revanced-patches#4101

@YT-Advanced Can you port this mod to RvX? I'm allergic to kotlin. 👍

@YT-Advanced
Copy link

@inotia00 ReVanced/revanced-patches#4101

@YT-Advanced Can you port this mod to RvX? I'm allergic to kotlin. 👍

Uhm rn it seem like A/B Testing, so I cannot test this stuff in my side

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

No branches or pull requests

4 participants