Skip to content

Commit

Permalink
feat(Twitter): Added Remove top people in search patch
Browse files Browse the repository at this point in the history
  • Loading branch information
swakwork committed Dec 6, 2024
1 parent adfbe33 commit 95b5ef9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package crimera.patches.twitter.ads.timelineEntryHook

import app.revanced.patcher.data.BytecodeContext
import app.revanced.patcher.patch.BytecodePatch
import app.revanced.patcher.patch.annotation.CompatiblePackage
import app.revanced.patcher.patch.annotation.Patch
import crimera.patches.twitter.misc.settings.SettingsPatch
import crimera.patches.twitter.misc.settings.fingerprints.SettingsStatusLoadFingerprint

@Patch(
name = "Remove top people in search",
description = "Removes people section after search",
dependencies = [SettingsPatch::class, TimelineEntryHookPatch::class],
compatiblePackages = [CompatiblePackage("com.twitter.android")],
use = true,
)
object HideTopPeopleSearch : BytecodePatch(
setOf(SettingsStatusLoadFingerprint),
) {
override fun execute(context: BytecodeContext) {
SettingsStatusLoadFingerprint.enableSettings("hideTopPeopleSearch")
}
}
2 changes: 2 additions & 0 deletions src/main/resources/twitter/settings/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
<string name="piko_pref_db_del_items">Deleted items</string>
<string name="piko_pref_hide_premium_upsell">premium upsell</string>
<string name="piko_pref_hide_premium_upsell_desc">Removes premium upsell in home timeline</string>
<string name="piko_pref_top_people_search">top people in search</string>
<string name="piko_pref_top_people_search_desc">Removes people section after search</string>

<!-- Misc Settings -->
<string name="piko_title_misc">Misc</string>
Expand Down

0 comments on commit 95b5ef9

Please sign in to comment.