This repository has been archived by the owner on Jul 26, 2024. It is now read-only.
generated from ReVanced/revanced-patches-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
close #13
- Loading branch information
1 parent
4315dab
commit 9226df7
Showing
73 changed files
with
1,640 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
org.gradle.parallel = true | ||
org.gradle.caching = true | ||
kotlin.code.style = official | ||
version = 1.12.0-dev.1 | ||
version = 1.12.0-dev.6 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
src/main/kotlin/indus/org/patches/twitter/adsandpromotions/fingerprints/GAdsFingerprint.kt
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
src/main/kotlin/indus/org/patches/twitter/crimeraswak/ads/timelineEntryHook/HideAds.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package indus.org.patches.twitter.crimeraswak.ads.timelineEntryHook | ||
|
||
import app.revanced.patcher.data.BytecodeContext | ||
import app.revanced.patcher.extensions.InstructionExtensions.addInstruction | ||
import app.revanced.patcher.patch.BytecodePatch | ||
import app.revanced.patcher.patch.annotation.CompatiblePackage | ||
import app.revanced.patcher.patch.annotation.Patch | ||
import indus.org.patches.twitter.crimeraswak.misc.settings.SettingsPatch | ||
import indus.org.patches.twitter.crimeraswak.misc.settings.fingerprints.SettingsStatusLoadFingerprint | ||
|
||
@Patch( | ||
name = "Remove Ads", | ||
dependencies = [SettingsPatch::class, TimelineEntryHookPatch::class], | ||
compatiblePackages = [CompatiblePackage("com.twitter.android")], | ||
use = true | ||
) | ||
object HideAds :BytecodePatch( | ||
setOf() | ||
){ | ||
override fun execute(context: BytecodeContext) { | ||
SettingsStatusLoadFingerprint.result!!.mutableMethod.addInstruction( | ||
0, | ||
"${SettingsPatch.SSTS_DESCRIPTOR}->hideAds()V" | ||
) | ||
|
||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/main/kotlin/indus/org/patches/twitter/crimeraswak/ads/timelineEntryHook/HideCTJ.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package indus.org.patches.twitter.crimeraswak.ads.timelineEntryHook | ||
|
||
import app.revanced.patcher.data.BytecodeContext | ||
import app.revanced.patcher.extensions.InstructionExtensions.addInstruction | ||
import app.revanced.patcher.patch.BytecodePatch | ||
import app.revanced.patcher.patch.annotation.CompatiblePackage | ||
import app.revanced.patcher.patch.annotation.Patch | ||
import indus.org.patches.twitter.crimeraswak.misc.settings.SettingsPatch | ||
import indus.org.patches.twitter.crimeraswak.misc.settings.fingerprints.SettingsStatusLoadFingerprint | ||
|
||
@Patch( | ||
name = "Remove \"Communities to join\" Banner", | ||
dependencies = [SettingsPatch::class, TimelineEntryHookPatch::class], | ||
compatiblePackages = [CompatiblePackage("com.twitter.android")], | ||
use = true | ||
) | ||
object HideCTJ :BytecodePatch( | ||
setOf() | ||
){ | ||
override fun execute(context: BytecodeContext) { | ||
SettingsStatusLoadFingerprint.result!!.mutableMethod.addInstruction( | ||
0, | ||
"${SettingsPatch.SSTS_DESCRIPTOR}->hideCommToJoin()V" | ||
) | ||
|
||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/main/kotlin/indus/org/patches/twitter/crimeraswak/ads/timelineEntryHook/HideCTS.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package indus.org.patches.twitter.crimeraswak.ads.timelineEntryHook | ||
|
||
import app.revanced.patcher.data.BytecodeContext | ||
import app.revanced.patcher.extensions.InstructionExtensions.addInstruction | ||
import app.revanced.patcher.patch.BytecodePatch | ||
import app.revanced.patcher.patch.annotation.CompatiblePackage | ||
import app.revanced.patcher.patch.annotation.Patch | ||
import indus.org.patches.twitter.crimeraswak.misc.settings.SettingsPatch | ||
import indus.org.patches.twitter.crimeraswak.misc.settings.fingerprints.SettingsStatusLoadFingerprint | ||
|
||
@Patch( | ||
name = "Remove \"Creators to subscribe\" Banner", | ||
dependencies = [SettingsPatch::class, TimelineEntryHookPatch::class], | ||
compatiblePackages = [CompatiblePackage("com.twitter.android")], | ||
use = true | ||
) | ||
object HideCTS :BytecodePatch( | ||
setOf() | ||
){ | ||
override fun execute(context: BytecodeContext) { | ||
SettingsStatusLoadFingerprint.result!!.mutableMethod.addInstruction( | ||
0, | ||
"${SettingsPatch.SSTS_DESCRIPTOR}->hideCreatorsToSub()V" | ||
) | ||
|
||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...n/kotlin/indus/org/patches/twitter/crimeraswak/ads/timelineEntryHook/HideDetailedPosts.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package indus.org.patches.twitter.crimeraswak.ads.timelineEntryHook | ||
|
||
import app.revanced.patcher.data.BytecodeContext | ||
import app.revanced.patcher.extensions.InstructionExtensions.addInstruction | ||
import app.revanced.patcher.patch.BytecodePatch | ||
import app.revanced.patcher.patch.annotation.CompatiblePackage | ||
import app.revanced.patcher.patch.annotation.Patch | ||
import indus.org.patches.twitter.crimeraswak.misc.settings.SettingsPatch | ||
import indus.org.patches.twitter.crimeraswak.misc.settings.fingerprints.SettingsStatusLoadFingerprint | ||
|
||
@Patch( | ||
name = "Remove Detailed posts", | ||
description = "Removes detailed posts in replies", | ||
dependencies = [SettingsPatch::class, TimelineEntryHookPatch::class], | ||
compatiblePackages = [CompatiblePackage("com.twitter.android")], | ||
use = false | ||
) | ||
object HideDetailedPosts :BytecodePatch( | ||
setOf() | ||
){ | ||
override fun execute(context: BytecodeContext) { | ||
SettingsStatusLoadFingerprint.result!!.mutableMethod.addInstruction( | ||
0, | ||
"${SettingsPatch.SSTS_DESCRIPTOR}->hideDetailedPost()V" | ||
) | ||
|
||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/main/kotlin/indus/org/patches/twitter/crimeraswak/ads/timelineEntryHook/HideGoogleAds.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package indus.org.patches.twitter.crimeraswak.ads.timelineEntryHook | ||
|
||
import app.revanced.patcher.data.BytecodeContext | ||
import app.revanced.patcher.extensions.InstructionExtensions.addInstruction | ||
import app.revanced.patcher.patch.BytecodePatch | ||
import app.revanced.patcher.patch.annotation.CompatiblePackage | ||
import app.revanced.patcher.patch.annotation.Patch | ||
import indus.org.patches.twitter.crimeraswak.misc.settings.SettingsPatch | ||
import indus.org.patches.twitter.crimeraswak.misc.settings.fingerprints.SettingsStatusLoadFingerprint | ||
|
||
@Patch( | ||
name = "Remove Google Ads", | ||
dependencies = [SettingsPatch::class, TimelineEntryHookPatch::class], | ||
compatiblePackages = [CompatiblePackage("com.twitter.android")], | ||
use = true | ||
) | ||
object HideGoogleAds :BytecodePatch( | ||
setOf() | ||
){ | ||
override fun execute(context: BytecodeContext) { | ||
SettingsStatusLoadFingerprint.result!!.mutableMethod.addInstruction( | ||
0, | ||
"${SettingsPatch.SSTS_DESCRIPTOR}->hideGAds()V" | ||
) | ||
|
||
} | ||
} |
Oops, something went wrong.