revanced-patches icon indicating copy to clipboard operation
revanced-patches copied to clipboard

feat(YouTube): Hide trending results during video search (non-litho how-to)

Open 0xrxL opened this issue 2 years ago • 14 comments

Application

YouTube

Issue

UPDATE: Based on a recent feedback from @Aryan-Chauhan, the app now show two distinct type of trending results (with and without fire icon): 331839904-61ea83a4-253d-4e37-8dd0-50d5ab664e0f

Starting with the latest 18.1x versions, Google has introduced trending searches when searching for videos, as you can see in the screenshot below:

4

Patch

  • Create a method to hide/show the parent of a view, as shown in the following screenshot: 3

  • Pass the imageview of resource "R.drawable.yt_outline_fire_black_24" as parameters for the method "SearchSuggestionVisibility(imageView, boolean)", with parameter boolean set to "false", as shown in the following screenshot: 1

  • Pass the imageview of resource "R.drawable.yt_outline_arrow_time_black_24" and "R.drawable.yt_outline_search_black_24" as parameters for the method "SearchSuggestionVisibility(imageView, boolean)", with parameter boolean set to "true", as shown in the following screenshot: 2

Motivation

Remove useless and annoying searching results.

Acknowledgements

  • [X] I have searched the existing issues and this is a new and no duplicate or related to another open issue.
  • [X] I have written a short but informative title.
  • [X] I filled out all of the requested information in this issue properly.

0xrxL avatar May 26 '23 21:05 0xrxL

Obviously...this patch ensure to leave "typing searching" untouched:

Immagine 2023-05-26 235727

0xrxL avatar May 26 '23 21:05 0xrxL

YouTube 18.19.35 ---> kjz.smali

0xrxL avatar May 26 '23 22:05 0xrxL

Those search trendings don't appear for me, instead the search history appears. Screenshot_2023-05-27-11-04-31-795_app.revanced.android.youtube-edit.jpg

Maybe it's some sort of A/B testing Google does at you.

Julius8900 avatar May 27 '23 08:05 Julius8900

Those search trendings don't appear for me, instead the search history appears. Screenshot_2023-05-27-11-04-31-795_app.revanced.android.youtube-edit.jpg

Maybe it's some sort of A/B testing Google does at you.

Yeah, but it can be patched before it is globally enabled.

0xrxL avatar May 27 '23 08:05 0xrxL

I think it is now globally enabled for all users. Now there are 2 types of trending searches.

BTW, my search history is disabled & has zero items in it. Also, watch history is disabled & has zero items in it.

@0xrxL Can you edit your issue and include the below screenshot & mention that there are now 2 types of trending searches (fire & non-fire) ?

Untitled.png

Aryan-Chauhan avatar May 19 '24 01:05 Aryan-Chauhan

Done (update added in the feature request description)

0xrxL avatar May 19 '24 01:05 0xrxL

@LisoUseInAIKyrios Do you need of a new issue with steps to implement this feature, based on last 19.16.39 version?

0xrxL avatar Aug 18 '24 13:08 0xrxL

If the information here is still valid then a new issue is not needed.

LisoUseInAIKyrios avatar Aug 18 '24 15:08 LisoUseInAIKyrios