revanced-patches
revanced-patches copied to clipboard
feat(YouTube/`Comments`): Hide timestamp button and quick emoji panel
Feature description
When commenting, YouTube provides a button to comment with the timestamp and a row of emoji to use. A patch to turn these off.
Timestamp button:
Emoji panel:
Motivation
Well emoji picker is definitely a waste of space considering most, if not every keyboard has an emoji button built into it. And the timestamp button, for those who don't want to comment the timestamp or may accidentally click it by mistake.
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.
Adding composer_timestamp_button.eml
to custom filter hides the timestamp button, but I couldn't find a way to hide the emoji panel.
04-21 19:01:06.339 14070 14070 D revanced: LithoFilterPatch: Searching ID: comment_composer.eml-js-b|26a82fe3bb57f9 Path: comment_composer.eml-js-b|26a82fe3bb57f9|CellType| BufferStrings: id.comment.quick_emoji.buttonΓ¥ÖEgAggAIoAQ%3D%3DΓ¥ÖEgAggAIoAQ%3D%3DΓ¥Öid.comment.quick_emoji.buttonΓ¥ÖEgAggAIoAQ%3D%3DΓ¥ÖEgAggAIoAQ%3D%3DΓ¥Öid.comment.quick_emoji.buttonΓ¥ÖEgAggAIoAQ%3D%3DΓ¥ÖEgAggAIoAQ%3D%3DΓ¥Öid.comment.quick_emoji.buttonΓ¥ÖEgAggAIoAQ%3D%3DΓ¥ÖEgAggAIoAQ%3D%3DΓ¥Öid.comment.quick_emoji.buttonΓ¥ÖEgAggAIoAQ%3D%3DΓ¥ÖEgAggAIoAQ%3D%3DΓ¥Öid.comment.quick_emoji.buttonΓ¥ÖEgAggAIoAQ%3D%3DΓ¥ÖEgAggAIoAQ%3D%3DΓ¥Öid.comment.quick_emoji.buttonΓ¥ÖEgAggAIoAQ%3D%3DΓ¥ÖEgAggAIoAQ%3D%3DΓ¥ÖPm7WsΓ¥Ödivider.eml|1962a10e5c84fc18Γ¥Ö8f7WsΓ¥Öcomposer_main_action_button.eml-js-b|3cd08dec3c59206dΓ¥Ö`7WsΓ¥Öcomposer_timestamp_button.eml|fa25abdd48a62657Γ¥Öcomposer_input.eml-js-b|4a77a21bf60c85faΓ¥Öavatar.eml|3aec0ad3894c830bΓ¥ÖYLNZΓ¥Ödivider.eml|1962a10e5c84fc18Γ¥Öid.elements.components.comment_composerΓ¥Ö1713706239167965461Γ¥Öcomment_composer.eml-js-b|26a82fe3bb57f9Γ¥Ö
@LisoUseInAIKyrios, are you seeing any particular way to hide the emoji panel here?
If it is not a litho component then it might be found by including Enable Android debugging
, then using Android Studio layout inspector (open it from the Integrations project) and looking thru the layout to find class names or layout resource names for the emoji UI components.
If any layout names or custom classes is found, then dig thru the apk using jadx and find where that resource is loaded.
Then maybe it can be patched out.
I haven't tried doing this.
Bufferstring has this element id.comment.quick_emoji.button
but I can't seem to combine it with anything.
Both can be filtered using the right path and buffer strings,
But the buffer shows up exactly the same for both the timestamp button and the emoji buttons, making it only possible to hide both together.
https://github.com/ReVanced/revanced-patches/pull/3076