-
-
Notifications
You must be signed in to change notification settings - Fork 301
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
feat (YouTube): Hide Shop
tag near the more button
#2758
Comments
This won't happen unless we know how to modify Litho components properly. The view is flattened and not worth the effort to figure out just to hide this. |
It would have been nice but if it's a task which is too difficult, I understand. |
@LisoUseInAIKyrios, can the method you mentioned in this comment be used to hide this component? |
Possibly. Someone would need to spend time to research it. |
Research if this method of hiding is possible or not/ if this |
Research if that litho component has a custom android class that backs it. Android Studio layout inspector can be used for that (must also patch with Want to help? 🙂 |
Is this something a novice can do without any background knowledge? |
No coding skills are needed. It's a matter of trying to identify where UI components are loaded in the code and it's more time consuming than skill related. |
Okay. Is there a guide which I can follow for this? If so, when I have time, I'll try giving it a shot. |
There probably is guides for Android layout inspector. But for jadx it's more of figuring it out. Maybe there is some dev skills for this. |
That looks as far as you can go. The shop button must be entirely litho without any custom classes. |
So that means hiding it is impossoble or possible? |
hiding using the strategy I mentioned that you quoted seems unlikely. |
Ah, I see. Any new strategies available which we can try? |
Hook onto the litho code that loads/draws image from resources in the apk, and selectively hide if the image is |
So the normal logcat method and capture which litho has the bufferstring |
No, I meant adding a new patch hook where litho is loading image resources (or where those image resources are drawn to screen). |
04-28 15:32:37.251 8481 14233 D revanced: LithoFilterPatch: Searching ID: null Path: video_metadata.eml|2989a5833b66f5b9|video_metadata_inner.eml|f705d32e61523ab9|CellType|ContainerType|ContainerType|ContainerType|video_subtitle.eml|4e63b22e4c3b9aae|TextType| BufferStrings: 3.9M views11 days agoShop...moreΓ¥Ö...moreΓ¥Ösans-serif-mediumΓ¥Ö3.9M views 11d ago Shop ...moreΓ¥Öyt_outline_bag_black_24Γ¥Ösans-serif-mediumΓ¥Ösans-serif-regularΓ¥Ösans-serif-regularΓ¥Ösans-serif-regularΓ¥Ösans-serif-regularΓ¥Ösans-serif-regularΓ¥Ö |
So implementing a new method for hiding such components. |
I tried selectively filtering only when Looking at this closer, not only is there an icon but there is also the word 'Shop'. So unless the 'shop' text is part of the icon layout component (seems unlikely), then hiding the shop icon and the word 'shop' is not possible since 'Shop' is a localized word. The only option is to selectively pick out localized text (and include every localized variant) and also hide the icon. Seems too fragile, and there is no existing hooks for any of this either. |
Welp, it was a worth a shot. |
Litho seems to support accessibility options/ screen readers ,(such as the app "Developer Assistant" from Play Store): Evidently the view group has been flattened by Yoga to a view meaning that there's no way to edit it unless we figure out how using the Litho methods to edit it and trigger a rerender works. An other method is to modify the YouTube /player response. This response should include metadata such as if the video has this Shopping stuff. It could perhaps also be returned as a Litho buffer, but all this needs more reversing. |
Just saw that @inotia00 implemented a patch to hide this. |
@LisoUseInAIKyrios, is this an applicable solution to this issue? |
Feature description
There's already a patch which hides the shopping links in video description, but as a residue there's still the
Shop
tag which remains on the video.The
Shop
tag:Motivation
Hiding it can be a part of the
Hide Shopping Links in Video Description
patch which then removes all remains of a shopping link ever being there in the description in the first place.Acknowledgements
The text was updated successfully, but these errors were encountered: