feat(YouTube - Playback speed): Allows disabling tap and hold speed
Co-authored-by: inotia00 <108592928+inotia00@users.noreply.github.com>
This commit is contained in:
parent
5c7fc97059
commit
b71e4f95ff
3 changed files with 34 additions and 2 deletions
|
|
@ -186,6 +186,18 @@ internal val customPlaybackSpeedPatch = bytecodePatch(
|
|||
move-result v$speedRegister
|
||||
"""
|
||||
)
|
||||
|
||||
val enabledIndex = it[3].index
|
||||
val enabledRegister =
|
||||
getInstruction<OneRegisterInstruction>(enabledIndex).registerA
|
||||
|
||||
addInstructions(
|
||||
enabledIndex,
|
||||
"""
|
||||
invoke-static { v$enabledRegister }, $EXTENSION_CLASS_DESCRIPTOR->disableTapAndHoldSpeed(Z)Z
|
||||
move-result v$enabledRegister
|
||||
"""
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1742,7 +1742,9 @@ Enabling this can unlock higher video qualities"</string>
|
|||
<string name="revanced_custom_playback_speeds_parse_exception">Invalid custom playback speeds</string>
|
||||
<string name="revanced_custom_playback_speeds_auto">Auto</string>
|
||||
<string name="revanced_speed_tap_and_hold_title">Custom tap and hold speed</string>
|
||||
<string name="revanced_speed_tap_and_hold_summary">Playback speed between 0-8</string>
|
||||
<string name="revanced_speed_tap_and_hold_summary">"Playback speed between 0-8
|
||||
|
||||
Set to 0, to disable tap and hold speed"</string>
|
||||
</patch>
|
||||
<patch id="video.speed.remember.rememberPlaybackSpeedPatch">
|
||||
<string name="revanced_remember_playback_speed_last_selected_title">Remember playback speed changes</string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue