feat(YouTube - Change start page): Add more start pages (#136)

* Revert "fix(YouTube - Change start page): Use correct browseId for `Podcasts`…"

This reverts commit 66b7761e77.

* feat(YouTube - Change start page): Update start pages

* Update strings.xml

* Fix

* feat: Fix typo, Switch to Kotlin, Add `Podcasts` and `Virtual Reality`

---------

Co-authored-by: inotia00 <108592928+inotia00@users.noreply.github.com>
This commit is contained in:
Hoàng Gia Bảo
2025-01-27 17:02:38 +07:00
committed by GitHub
parent f7109f9815
commit 5255c7eca8
6 changed files with 163 additions and 145 deletions

View File

@ -48,9 +48,9 @@ val changeStartPagePatch = bytecodePatch(
// There is no browseId assigned to Shorts and Search.
// Just hook the Intent action.
intentActionFingerprint.methodOrThrow().addInstruction(
intentFingerprint.methodOrThrow().addInstruction(
0,
"invoke-static { p1 }, $EXTENSION_CLASS_DESCRIPTOR->overrideIntentAction(Landroid/content/Intent;)V"
"invoke-static { p1 }, $EXTENSION_CLASS_DESCRIPTOR->overrideIntent(Landroid/content/Intent;)V"
)
// region add settings

View File

@ -15,8 +15,8 @@ internal val browseIdFingerprint = legacyFingerprint(
strings = listOf("FEwhat_to_watch"),
)
internal val intentActionFingerprint = legacyFingerprint(
name = "intentActionFingerprint",
internal val intentFingerprint = legacyFingerprint(
name = "intentFingerprint",
parameters = listOf("Landroid/content/Intent;"),
strings = listOf("has_handled_intent"),
)