Skip to content

Commit

Permalink
feat(Twitter): Added Remove main event patch
Browse files Browse the repository at this point in the history
  • Loading branch information
swakwork committed Aug 3, 2024
1 parent 8f34928 commit 806598d
Show file tree
Hide file tree
Showing 2 changed files with 24 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 main event",
description = "Removes main event (Paris) from Explore page",
dependencies = [SettingsPatch::class,TimelineEntryHookPatch::class],
compatiblePackages = [CompatiblePackage("com.twitter.android")],
use = true
)
object HideMainEvent :BytecodePatch(
setOf(SettingsStatusLoadFingerprint)
){
override fun execute(context: BytecodeContext) {
SettingsStatusLoadFingerprint.enableSettings("hideMainEvent")
}
}
1 change: 1 addition & 0 deletions src/main/resources/twitter/settings/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<string name="piko_title_ads">Ads</string>
<string name="piko_pref_hide_promoted_posts">Promoted posts</string>
<string name="piko_pref_hide_g_ads">Google ads</string>
<string name="piko_pref_hide_main_event">Main event (Explore)</string>
<string name="piko_pref_wtf_section">"Who to follow" section</string>
<string name="piko_pref_cts_section">"Creators to subscribe" section</string>
<string name="piko_pref_ctj_section">"Community to join" section</string>
Expand Down

0 comments on commit 806598d

Please sign in to comment.