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

feat(YouTube/`Hide Shorts components`): Hide 'Buy Super Thanks' button

Open ILoveOpenSourceApplications opened this issue 9 months ago • 2 comments

Feature description

A patch to hide the 'Buy Super Thanks" button in Shorts. Screenshot_2024-05-16-00-21-33-800_app revanced android youtube~2

Using suggested_action.eml/suggested_action_inner.eml/^reel_metapanel.eml$suggested_action_inner_view_model_key in custom filter does hide it. Relevant line:

05-16 00:11:17.958 27280 27280 D revanced: LithoFilterPatch: Searching ID: null Path: reel_metapanel.eml|ff8707c8f59d6572|ContainerType|ContainerType|suggested_action.eml|b18d5a8e6a27ea1e|suggested_action_inner.eml|4c6eb920a4cf6250|ContainerType|ContainerType| BufferStrings: suggested_action_inner_view_model_keyΓ¥Ösuggested-action-transition-keyΓ¥ÖBuy Super ThanksΓ¥Ösans-serif-mediumΓ¥Öyt_outline_dollar_sign_heart_black_24Γ¥Öid.elements.components.suggested_action.buttonΓ¥ÖBuy Super ThanksΓ¥Ö@CikKCzZTOE56dWFsLS04EhhVQ0pvWXM2cTFSN0tFM01XbE5xZWJJcXcYBw%3D%3DΓ¥Ö!suggested_action_single_line_rootΓ¥Öid.elements.components.suggested_actionΓ¥Ö

Motivation

Keeps the Shorts UI clean for some users and some doesn't wanna use the button itself.

Acknowledgements

  • [X] This issue is not a duplicate of an existing feature request.
  • [X] I have chosen an appropriate title.
  • [X] All requested information has been provided properly.

Verify this also hides it (super thanks doesn't show in my country):

^reel_metapanel.eml$yt_outline_dollar_sign_heart

LisoUseInAIKyrios avatar May 15 '24 19:05 LisoUseInAIKyrios

^reel_metapanel.eml$yt_outline_dollar_sign_heart

Yes, this works as well.