generated from ReVanced/revanced-patches-template
-
-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
62 additions
and
62 deletions.
There are no files selected for viewing
50 changes: 25 additions & 25 deletions
50
...patches/youtube/video/speed/VideoSpeed.kt → ...ches/youtube/video/speed/PlaybackSpeed.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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
package app.revanced.patches.youtube.video.speed | ||
|
||
import app.revanced.patcher.annotation.Description | ||
import app.revanced.patcher.annotation.Name | ||
import app.revanced.patcher.annotation.Version | ||
import app.revanced.patcher.data.BytecodeContext | ||
import app.revanced.patcher.patch.BytecodePatch | ||
import app.revanced.patcher.patch.PatchResult | ||
import app.revanced.patcher.patch.PatchResultSuccess | ||
import app.revanced.patcher.patch.annotations.DependsOn | ||
import app.revanced.patcher.patch.annotations.Patch | ||
import app.revanced.patches.youtube.video.speed.custom.patch.CustomVideoSpeedPatch | ||
import app.revanced.patches.youtube.video.speed.remember.patch.RememberPlaybackSpeedPatch | ||
|
||
@Patch | ||
@Name("Video speed") | ||
@Description("Adds custom video speeds and ability to remember the playback speed you chose in the video playback speed flyout.") | ||
@DependsOn([CustomVideoSpeedPatch::class, RememberPlaybackSpeedPatch::class]) | ||
@VideoSpeedCompatibility | ||
@Version("0.0.1") | ||
class VideoSpeed : BytecodePatch() { | ||
override fun execute(context: BytecodeContext): PatchResult { | ||
return PatchResultSuccess() // All patches this patch depends on succeed. | ||
} | ||
} | ||
package app.revanced.patches.youtube.video.speed | ||
|
||
import app.revanced.patcher.annotation.Description | ||
import app.revanced.patcher.annotation.Name | ||
import app.revanced.patcher.annotation.Version | ||
import app.revanced.patcher.data.BytecodeContext | ||
import app.revanced.patcher.patch.BytecodePatch | ||
import app.revanced.patcher.patch.PatchResult | ||
import app.revanced.patcher.patch.PatchResultSuccess | ||
import app.revanced.patcher.patch.annotations.DependsOn | ||
import app.revanced.patcher.patch.annotations.Patch | ||
import app.revanced.patches.youtube.video.speed.custom.patch.CustomPlaybackSpeedPatch | ||
import app.revanced.patches.youtube.video.speed.remember.patch.RememberPlaybackSpeedPatch | ||
|
||
@Patch | ||
@Name("Playback speed") | ||
@Description("Adds custom playback speeds and ability to remember the playback speed you chose in the video playback speed flyout.") | ||
@DependsOn([CustomPlaybackSpeedPatch::class, RememberPlaybackSpeedPatch::class]) | ||
@PlaybackSpeedCompatibility | ||
@Version("0.0.1") | ||
class PlaybackSpeed : BytecodePatch() { | ||
override fun execute(context: BytecodeContext): PatchResult { | ||
return PatchResultSuccess() // All patches this patch depends on succeed. | ||
} | ||
} |
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
7 changes: 7 additions & 0 deletions
7
...outube/video/speed/custom/fingerprints/ShowOldPlaybackSpeedMenuIntegrationsFingerprint.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,7 @@ | ||
package app.revanced.patches.youtube.video.speed.custom.fingerprints | ||
|
||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
|
||
object ShowOldPlaybackSpeedMenuIntegrationsFingerprint : MethodFingerprint( | ||
customFingerprint = { method, _ -> method.name == "showOldPlaybackSpeedMenu" } | ||
) |
7 changes: 0 additions & 7 deletions
7
...s/youtube/video/speed/custom/fingerprints/ShowOldVideoSpeedMenuIntegrationsFingerprint.kt
This file was deleted.
Oops, something went wrong.
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