mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-12-10 03:13:56 +01:00
Compare commits
6 Commits
v4.2.0-dev
...
v4.3.0-dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f5f88092b6 | ||
|
|
0434d8812b | ||
|
|
ec38b8e51c | ||
|
|
96f9b73c74 | ||
|
|
1502fe1f7f | ||
|
|
824d094394 |
27
CHANGELOG.md
27
CHANGELOG.md
@@ -1,3 +1,30 @@
|
||||
# [4.3.0-dev.2](https://github.com/ReVanced/revanced-patches/compare/v4.3.0-dev.1...v4.3.0-dev.2) (2024-02-09)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **Sync for Reddit:** Add `Fix /s/ links` patch ([f15ef3f](https://github.com/ReVanced/revanced-patches/commit/f15ef3f63460254236185f8e22c9395db4db9465))
|
||||
|
||||
# [4.3.0-dev.1](https://github.com/ReVanced/revanced-patches/compare/v4.2.0...v4.3.0-dev.1) (2024-02-09)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **YouTube - Change start page:** Add more start pages ([cc1d9b7](https://github.com/ReVanced/revanced-patches/commit/cc1d9b743633c619fb6acc428e884c1c9b53e10b))
|
||||
|
||||
# [4.2.0](https://github.com/ReVanced/revanced-patches/compare/v4.1.0...v4.2.0) (2024-02-08)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **Infinity for Reddit - Unlock subscription:** Do not crash by patching billing client ([7d76e2e](https://github.com/ReVanced/revanced-patches/commit/7d76e2e43c69b2b75f40a15a9147d041c77cbcd9))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **X:** Add `Hide view count` patch ([bf064ec](https://github.com/ReVanced/revanced-patches/commit/bf064ecc1d5de8b592d14d34acfa1a4314c374ba))
|
||||
* **X:** Add `Unlock downloads` patch ([2c20844](https://github.com/ReVanced/revanced-patches/commit/2c20844eaae698f185a9d321e2c70bde4b485cee))
|
||||
|
||||
# [4.2.0-dev.1](https://github.com/ReVanced/revanced-patches/compare/v4.1.1-dev.1...v4.2.0-dev.1) (2024-02-08)
|
||||
|
||||
|
||||
|
||||
@@ -550,6 +550,12 @@ public final class app/revanced/patches/reddit/customclients/syncforreddit/detec
|
||||
public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V
|
||||
}
|
||||
|
||||
public final class app/revanced/patches/reddit/customclients/syncforreddit/fix/slink/FixSLinksPatch : app/revanced/patcher/patch/BytecodePatch {
|
||||
public static final field INSTANCE Lapp/revanced/patches/reddit/customclients/syncforreddit/fix/slink/FixSLinksPatch;
|
||||
public fun execute (Lapp/revanced/patcher/data/BytecodeContext;)V
|
||||
public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V
|
||||
}
|
||||
|
||||
public final class app/revanced/patches/reddit/layout/disablescreenshotpopup/DisableScreenshotPopupPatch : app/revanced/patcher/patch/BytecodePatch {
|
||||
public static final field INSTANCE Lapp/revanced/patches/reddit/layout/disablescreenshotpopup/DisableScreenshotPopupPatch;
|
||||
public fun execute (Lapp/revanced/patcher/data/BytecodeContext;)V
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
org.gradle.parallel = true
|
||||
org.gradle.caching = true
|
||||
kotlin.code.style = official
|
||||
version = 4.2.0-dev.1
|
||||
version = 4.3.0-dev.2
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,32 @@
|
||||
package app.revanced.patches.reddit.customclients.syncforreddit.fix.slink
|
||||
|
||||
import app.revanced.patcher.data.BytecodeContext
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
|
||||
import app.revanced.patcher.patch.BytecodePatch
|
||||
import app.revanced.patcher.patch.annotation.CompatiblePackage
|
||||
import app.revanced.patcher.patch.annotation.Patch
|
||||
import app.revanced.patches.reddit.customclients.syncforreddit.fix.slink.fingerprints.LinkHelperOpenLinkFingerprint
|
||||
import app.revanced.util.exception
|
||||
|
||||
@Patch(
|
||||
name = "Fix /s/ links",
|
||||
description = "Fixes the issue where /s/ links do not work.",
|
||||
compatiblePackages = [
|
||||
CompatiblePackage("com.laurencedawson.reddit_sync"),
|
||||
CompatiblePackage("com.laurencedawson.reddit_sync.pro"),
|
||||
CompatiblePackage("com.laurencedawson.reddit_sync.dev")
|
||||
],
|
||||
requiresIntegrations = true
|
||||
)
|
||||
object FixSLinksPatch : BytecodePatch(
|
||||
setOf(LinkHelperOpenLinkFingerprint)
|
||||
) {
|
||||
override fun execute(context: BytecodeContext) =
|
||||
LinkHelperOpenLinkFingerprint.result?.mutableMethod?.addInstructions(
|
||||
1,
|
||||
"""
|
||||
invoke-static { p3 }, Lapp/revanced/integrations/syncforreddit/FixSLinksPatch;->resolveSLink(Ljava/lang/String;)Ljava/lang/String;
|
||||
move-result-object p3
|
||||
"""
|
||||
) ?: throw LinkHelperOpenLinkFingerprint.exception
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package app.revanced.patches.reddit.customclients.syncforreddit.fix.slink.fingerprints
|
||||
|
||||
import app.revanced.patcher.fingerprint.MethodFingerprint
|
||||
|
||||
internal object LinkHelperOpenLinkFingerprint: MethodFingerprint(
|
||||
strings = listOf("Link title: ")
|
||||
)
|
||||
@@ -20,12 +20,16 @@
|
||||
</patch>
|
||||
<patch id="layout.startpage.ChangeStartPagePatch">
|
||||
<string-array name="revanced_start_page_entries">
|
||||
<item>@string/revanced_start_page_home_entry_0</item>
|
||||
<item>@string/revanced_start_page_home_entry_1</item>
|
||||
<item>@string/revanced_start_page_search_entry_2</item>
|
||||
<item>@string/revanced_start_page_subscriptions_entry_3</item>
|
||||
<item>@string/revanced_start_page_explore_entry_4</item>
|
||||
<item>@string/revanced_start_page_shorts_entry_5</item>
|
||||
<item>@string/revanced_start_page_entry_0</item>
|
||||
<item>@string/revanced_start_page_entry_1</item>
|
||||
<item>@string/revanced_start_page_entry_2</item>
|
||||
<item>@string/revanced_start_page_entry_3</item>
|
||||
<item>@string/revanced_start_page_entry_4</item>
|
||||
<item>@string/revanced_start_page_entry_5</item>
|
||||
<item>@string/revanced_start_page_entry_6</item>
|
||||
<item>@string/revanced_start_page_entry_7</item>
|
||||
<item>@string/revanced_start_page_entry_8</item>
|
||||
<item>@string/revanced_start_page_entry_9</item>
|
||||
</string-array>
|
||||
<string-array name="revanced_start_page_entry_values">
|
||||
<item/>
|
||||
@@ -34,6 +38,11 @@
|
||||
<item>open.subscriptions</item>
|
||||
<item>open.explore</item>
|
||||
<item>open.shorts</item>
|
||||
<item>www.youtube.com/feed/library</item>
|
||||
<!-- Liked videos -->
|
||||
<item>www.youtube.com/playlist?list=LL</item>
|
||||
<item>www.youtube.com/feed/history</item>
|
||||
<item>www.youtube.com/feed/trending</item>
|
||||
</string-array>
|
||||
</patch>
|
||||
<patch id="layout.thumbnails.AlternativeThumbnailsPatch">
|
||||
|
||||
@@ -792,12 +792,16 @@
|
||||
</patch>
|
||||
<patch id="layout.startpage.ChangeStartPagePatch">
|
||||
<string name="revanced_start_page_title">Set start page</string>
|
||||
<string name="revanced_start_page_home_entry_0">Default</string>
|
||||
<string name="revanced_start_page_home_entry_1">Home</string>
|
||||
<string name="revanced_start_page_search_entry_2">Search</string>
|
||||
<string name="revanced_start_page_subscriptions_entry_3">Subscriptions</string>
|
||||
<string name="revanced_start_page_explore_entry_4">Explore</string>
|
||||
<string name="revanced_start_page_shorts_entry_5">Shorts</string>
|
||||
<string name="revanced_start_page_entry_0">Default</string>
|
||||
<string name="revanced_start_page_entry_1">Home</string>
|
||||
<string name="revanced_start_page_entry_2">Search</string>
|
||||
<string name="revanced_start_page_entry_3">Subscriptions</string>
|
||||
<string name="revanced_start_page_entry_4">Explore</string>
|
||||
<string name="revanced_start_page_entry_5">Shorts</string>
|
||||
<string name="revanced_start_page_entry_6">Library</string>
|
||||
<string name="revanced_start_page_entry_7">Liked videos</string>
|
||||
<string name="revanced_start_page_entry_8">History</string>
|
||||
<string name="revanced_start_page_entry_9">Trending</string>
|
||||
</patch>
|
||||
<patch id="layout.startupshortsreset.DisableResumingShortsOnStartupPatch">
|
||||
<string name="revanced_disable_resuming_shorts_player_title">Disable resuming Shorts player</string>
|
||||
|
||||
Reference in New Issue
Block a user